How should i get name of the screen?
Ex:There is a "submit" button.If i clicked on the submit
button it opens a screen. I want that screen name.How can i
get that screen name
I dont have any property regarding that screen.
If suppose we cliked on the screen , Then QTP captures the
screen properties
then i can get the screen name by using GETROPROPERTY
But i want the screen name without clicking the screen.
("I am using the "settoproperty" for Second screen by using
fist screen properties")
Please tell me anyone
Answers were Sorted based on User's Feedback
Answer / art
U can use Object Spy feature in QTP, to capture the
mandatory and assistive ppty of any object. In ur case, u
want the screen name;
1. Perform the action, by clicking the submit button and
the screen will open.
2. Now, click the Object Spy feature and a hand like tool
will get displayed.
3.Take the tool, to the corresponding screen and click on
it.
4. U will be able to see all the ppty and values.
Hope this helps. Correct me if I am wrong.
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / guest
Hello Art...
I got your answer... Your answer is good but it is not
correct for this question
Question is... Click on Submit Button... One window or
dialogbox will open... we should not active that window...
We have to get the Window/dialogbox name through scripting..
If we use Object spy it will provide you every thing but in
interviews they don't ask in that manner.
I try to give the answer here...
First of all Click on Submit button... then get the no. of
windows on desktop
Code is here
function doit()
dim wins,shl,all_wins
set wins=createobject("scripting.dictionary")
set shl=createobject("shell.application")
set all_wins=wins.windows
for each win in all_wins
wins.add win.hwnd,win
Next
End function
set get_name=doit()
for each oie in get_name.items
set ltst=oie.getroproperty("Creation Time")
' msgbox ltst
set ltst_name=oie.getroproperty("name")
print ltst&" Recent Window opened on desktop&"& ltst_name
Next
msgbox ltst&" Recent Window opened on desktop&"& ltst_name
Is This Answer Correct ? | 0 Yes | 0 No |
Explain Descriptive Programming Types with Examples?
hi friends i have 4 yrs exp in testing and 2 yrsexp in QTP.currently aim working in mnc in north as a permanent employer .iam looking for job in south is there any openings plz let me know my mail id is bjr@aol.in its very urjent
This is a question thats generally asked in every QTP interview. What were the problems that you faced during automation and how did you resolve them?
What is difference between QC and TD?
Hi All, How to Compare two strings character by character in QTP
Q- what is the advantage of merging tool in QTP 9.2?
How to call script1 into script2?
w is datatable
How to parameterize Object Repository?
how we connect oracle or sql data server database to qtp. Hi Ram I was your answer for this. Can you kindly let me know in details steps on How we can connect to database. i am using QTP9.2 and SQL Server Database. I am new for QTP and this would be of great help.Thanks
To which environments does quicktest professional supports?
how will you load the test cases in ddt?