No 3 round up of some of the questions asked on the QTP forum.
- Sample Flight web based application is not working. Any solution?
- Cannot Playback my script-getting general Run Error
- Getting error message in Windows application
- how to enable all add ins in qtp 9.5?
- Add DataTable column parameter to WebElement in Object Repository?
- Write to attachment in QC running a test in QTP
- How to fetch the QC path from QTP?
- Problem while using an object description from an excel
- Difference between Parameter.Item and Parameter Object
- QTP- with Test Advantage
- Web Service testing not able to navigate wsdl
- how to use qtp scripts in loadrunner
If you have still not joined the forums, join it now.
If you want to keep track of further articles on QTP. I recommend you to subscribe via RSS Feed. You can also subscribe by Email and have new QTP articles sent directly to your inbox.
what framework you are following in your project ??
Hi,
I’m connecting oracle db from QTP using the following steps
Step 1: set conn=Createobject(“ADODB.Connection”)
Step 2: Srvname=”Driver={Microsoft ODBC for Oracle}:Server=153.39.128.176;UID=abc;Password=password123″
Step 3:conn.open Srvname
Step 4:Set Rec = CreateObject(“ADODB.Recordset”)
Step 5:SQL=”select count(*) from complianceprogramcode”
Rec.open SQL ,conn
In steps 3: it prompts for the error message “Format of the initialization string does not conform to the OLE DB specification”
I do not know the server name so gave the ip address of it.
Note: The oracle db is not connected at our end. It is installed in the client place remotely and we are accessing it through oracle client software
Please let me know the steps to the connect to database and retrieve data from table
alert(document.cookie);
good site
any one could you please check above code
how to write vbscript functions for html report
how to write vbscript functions
pls post vbscript functions
PLEASE HELP ME CORRECT THIS CODE
oHtmlFile.writeline(“”)
oHtmlFile.writeline(“Test Results”)
oHtmlFile.WriteLine(“”)
oHtmlFile.WriteLine(“”)
locHeadimg=glbRootPath & “TestData\table-images\cell-blue.jpg”
locHead=glbRootPath & “TestData\table-images\VodafoneLogo.jpg”
oHtmlFile.WriteLine(“table.imagetable {font-family: verdana,arial,sans-serif; font-size:11px; color:#141471; border-width: 1px; border-color: #999999; border-collapse: collapse;}”)
oHtmlFile.WriteLine(“table.imagetable th { background:#b5cfd2 url(‘”&locHeadimg&”‘); border-width: 1px; padding: 8px; border-style: solid; border-color: #999999;}”)
oHtmlFile.WriteLine(“table.imagetable td {background:#E1EBF3; border-width: 1px; padding: 8px; border-style: solid;border-color: #999999;}”)
oHtmlFile.WriteLine(“”)
oHtmlFile.WriteLine(“”)
oHtmlFile.WriteLine(“”)
good site
Can you pls tell me if there are two checkpoints and for the checkpoints i want to show one test result. If any of the checkpoints fail the result will be failed.
Is this possible to do?
If possible then pls tell me how to do this……..
Can two checkpoints show one test result?If any checkpoint fails the result will be failed.
Hi,
Can you please explain how to handle web rich text editor in QTP?
I have tried in all the ways but QTP is not identifying the property values of RTE.
I tried both the ways by using object repository as well as using descriptive programming.
Please let me know how to handle RTE in QTP?
Hi pls help me for this query
i have to click and select the option from toolbar near to the icon down arrow symbol is there. by clicking that down arrow is not recording and after that selecting the option is recording like
‘code not recorded for clicking the down arrow symbol in toolbar ‘ ????????????
‘this is for toolbar’
devtool.Window(“regexpwndtitle:=Document Composer.*”).WinToolbar(“text:=Positioning”,”nativeclass:=ToolbarWindow32″)
‘Code record for selecting the option’
Window(“..”).Window(“regexpwndtitle:=Document Composer”).WinObject(“regexpwndclass:=AfxFrame.*”).WinMenu(“menuobjtype:=3”).Select “Align to left edge”
Thanks
Vadhana
Hi, can u pls help me how to skip a “General Run Error” in QTP with the script but not clicking the “skip” button in the generated popup.
Hai,
I am having doubt in qtp :
Actually in which senarios/applications we don’t use the automation using qtp.In which applications we use the automation using qtp.
Please let me know .
Hi,
I have to check the login access for different users
Browser(“:: Welcome to CRM Applications”).Navigate “http://100.000.000.000/application/login.aspx”
now after navigate i give a valiable and assign the value from the excel
but QTP is not able to read from the excel
set ex=CreateObject(“Excel.Application”)
Set a=ex.workbooks.open(“C:\milind3.xls”)
Set b=a.worksheets(“Sheet1″)
dim Pages
for i=1 to 3
pages=b.cells(i,”C”).value
Browser(“Login Page”).Navigate pages
a=(“Login Page”)
msgbox a
r=(“http://100.000.000.000/application/LOGIN2.aspx”)
msgbox b
c=Browser(“Login Page”).GetROProperty (“name”)
msgbox c
If c=a or c=r Then
Browser(“Login Page”).Close
Reporter.ReportEvent micPass , “Session Mentioned “,”Passed ”
else
Browser(“Login Page”).Close
Reporter.ReportEvent micFail , “Session not Mentioned “,”Failed ”
End If
‘login=b.cells(i,”B”).value
msgbox Pages
‘msgbox pwd
next
‘ex.workbooks. close this is for closing the excel file
End Function
The script is not working
Plz provide me a solution
Is there any way to automate indentation in qtp?
Hi,
I am trying to record an application with QTP10.0 but in between the application is getting crashed.
It is perfectly executed manually.
Awaiting the response
Earlier version of Application was working with QTP.
Now we have upgraded the version of the application and are using QTP.
But the application is getting crashed while recording,while manually it is working fine.
Awaiting the response ASAP.
Hi,
I am unable to click on singout button in gmail using qtp. When i record it, it shows as
Browser(“browserName”).Page(“Pagename”).Frame(“c34fas4afa54”).Link(“Sign out”).click
The frame name is dynamic . So while recording it shows one frame name and while executing it shows diffrent framename and it fails. I tried the following but not able to succeed.
1. ”The frame name starts with c always
Browser(“browserName”).Page(“Pagename”).Frame(“c.*”).Link(“Sign out”).click -9999, -9999
2. ”I ignored the frame as some says it is not neccessary
Browser(“browserName”).Page(“Pagename”).Link(“Sign out).click -9999, -9999
In bot the cases, the test is failing as it not able to find the object.
Let me know how to handle this.
Hi friends
Am planing to take training from real time employee from hyderabad, please any body interested send me mobile number and email id to my email id.
Thanks
Badrinath
Hi all ,
This is vinayaka having 4+years exp on software testing, I am facing very unique problem QTP.
The problem is ” I am not able to open saved scripts, its throwing an error “Unexpected file format”
Please Can anybody help me……….
Hi frineds,
i want to create an excel object at run time .. and tried this code. But not able to create.
I saw in QTP help: For this to work “Internet security” must be turned off” . is this the reason> for nto getting. Please answer
Dim xl
Set xl = CreateObject(“Excel.Sheet”)
xl.Application.Visible = True
‘ Place some text in the first cell of the sheet.
xl.ActiveSheet.Cells(1,1).Value = “This is column A, row 1”
‘ Save the sheet.
xl.SaveAs “C:\TEST.XLS”
‘ Close Excel with the Quit method on the Application object.
xl.Application.Quit
‘ Release the object variable.
Set xl= Nothing
Hi, can any explain me how to write a regular expression, in which scenario we need it
Hi all,
I am new to this forum. Telling about myself i have 4+ years of experience in S/W Testing.
Now i am planning to move to QTP.Can you please send me the articles, scripts related to QTP.
Thanks,
Santhi