Hello Friends,
I am working with QTP 9.2 descriptive programming. Can you
please let me know how to work with below.
Browser is IE, for my site, it opens another page with
different browser name, For example Parent Page is
google.com and child page is inteview questions. How to
work with this second page.
Answers were Sorted based on User's Feedback
Answer / prasant87
While working on Parent Page Use Parent's page properties, for e.g.-
Browser("name:=Google").Page("title:=Google").WebEdit("name:=q").Set "QTP Interview Questions"
and when you are working on child page, use corresponding properties (as another page opens up), say e.g. -
Browser("name:=Top 50 QTP Interview Questions").Page("title:=Top 50 QTP Interview Questions").WebElement("outertext:=Home").Click
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / qtphelper
Try using creation time property for the second browser
whihc ocntains the new page
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / chandrashaker rao suguru
ya ,
use discription object.
discription.create
| Is This Answer Correct ? | 0 Yes | 3 No |
Scenario:2 combo boxes.1st combo contains a,b,c,d.2nd combo contains 10..20,20..30,30..40,.Selecting 'a' shld display 10...20,'b' shld display 20..30.. and so on.tell d script? 2.Random testing of 500 test cases in qtp?
now a days which one is using all companies for qtpscript a)Object Repository based script b)Descriptive program based script c)BOTH
if the excel sheet specified in script is not there,we get run time error how to handle the error ,please anybody explain me in detail
What are the views available in qtp?
i have a window , initial its name is "NEW CUSTOMER" i have to enter the details of customer in the test object fields and after saving the window name is automatically changing with the customer name . so how to identify that window after saving. (i am using descriptive programming.)
While writing script using For Next Statement in QTP, I try defining the variable in Lib File I am getting syntax error whereas if I use the variable in script file, the script works fine. Can anyone help me in finding the reason behind this?. E:g Dim intStartRow (Define in Lib File----- say abc.vbs) Dim intRow (If I define this variable in Lib file I am getting Syntax error where as if I define in the script file ---- say xyz.mts the script works fine) IntStartRow=2 For intRow = intStartRow to xlWrksht.UsedRange.Rows.Count ‘Some Code here Next
suppose i opened 6browsers and i want re-open the 4browser what is code for this..pls help me..
Once we get the Test Result from QTP.,I Have to convert into Excel file format..Is it possible..Can any gudie me regarding this... For Example : Total Test Case is : XXXXX Test Case passed : XXX Test Case Failed : XXX -------- Total XXXXXX ---------
Hi, When iam trying to import sheet to the QTP Global data table at the run time using the Importsheet method.It is able to import the sheet but no data is present after the import due to which the test is failing.Could anyone suggest what should be done. When I open the actual excel sheet data is present and is not corrupted.
How to import a test case present in ".xls" file to TD under a Test set?
Where to use Property Let, Property Get, Property Set in UFT
What are the enhancements u did after recording ur script?