It seems Interview questions from Ordain Solutions are
almost BASIC LEVEL-Easy.
I am asking one tough question..(I think.. May be easy for
some people)
In recorded script the - WebLink("cityinfo")
In reality, the WebLink name is "generalinfo"
How you can write function to click that changed web link.
NOTE: This functin should work with any Dynamic text link.
I will post the answer later.
Answer Posted / satish j
You can use regular expression to handle this.
so if the value of the name changes at run time it hardly
matters for QTP ,but if there are multiple links on apage
which typically is the case using only RE will not work as
object identification will be an issue. so along with this
provide assistive properties like html - tag, or alt
property,whcih are unique to the object so if recognition
becomes a problem it can be handled.
you can use the description object.
set weblinkrec = description.create
weblinkrec("name").value = ".*"
weblinkrec("htmltag").value = "xyz"
.....
and then use
Weblink(weblinkrec).click.
Note:
But always use smart identification where ever it is needed
as it slows down the execution of the script, typically when
there are same objects having conflicting properties.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the different types of checkpoints?
If the objects hierarchy is changing from build to build, then how you will handle that condition?
write a script for allinterview-submit Question first we've to select Choose Category,second select Sub- Category(Which is comes in to runtime)third select Question Type.for that give some descriptive and vb script
How to test background color and dynamic images during run time can you put the check point for moving objects?
How did you use regular expressions in QTP and also in WR?
hi guys, pls tell me for testing institution training hub, hitech city is best or not?
how do i know how to use tools
Can we run test with out adding object in object repository? How it is possible?
Give me some real time point of way where exactly we can conduct audits?
how to idetfy which test cases are automated?who will deside that plz tell me
How does quicktest professional identifies the object in the application?
How often were they executed?
How to use setroproperty?
How does QTP identify an object?
What is the difference between call to existing action and copy of an action?