Consider there are objects in a webapp which are identified by QTP. Suppose you know only the logical name of a object(absolutely nothing else about it). Which approach will you take to find the "micClass" of the object(You can't use Object Spy, or can't add the object in repository)?
Answers were Sorted based on User's Feedback
Answer / lok nath
actually we ll use the descriptive programing because we know the logical name of the object so. suppose i am having web button and i know logical name then what we ll do.
set odsec = description .create
odsec.Add "micclass","WebButton"
Set str name=Browser("tittle:=*"). page("tittle:=*").childobject(odsec).GetRoProperty(name)
print str name
| Is This Answer Correct ? | 0 Yes | 1 No |
If without using object repository and object spy for identify the object then first i will record the test script(application)
| Is This Answer Correct ? | 0 Yes | 2 No |
Hi Friends my Question is very simple,in Manual testing when we click on a hyper link it directs us to the relavent page or it re-directs us to the current page,so there we can easily write testcase but same thing if we do in automation script using QTP & need to generate report using Reporter.report event how we will do it?thanks in advance...
1. How to handle object implementation change in DP for Ex: i have login page with username,pasword (editboxes),login,cancel(buttons). Here i written DP code for login page with the help properties. My questions: 1.If properites are changing dynamically i will do (i want code for that) 2.if objects are changed dynamcally i will do (i wnat code for that)
What is the output of a + b in vbscript if a = 5 and b = 10?
how to comvert 120 into one hunderd twenty rupees only and vice varsa
who you define variables and functions in VB?
1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 how to find using vbscripting
write a vb script to calculate factorial of a number?
How will you get a string with the specified character the specified number of times in vbscript?
Why to use option explicit in vb script?
In qtp, how to use XML files for framework. if the XML files are more Efficient than Excel files?
When are redim statement and preserve keyword used in the vbscript language?
How do you declare a variable in vbscript?