Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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.

Answers were Sorted based on User's Feedback



It seems Interview questions from Ordain Solutions are almost BASIC LEVEL-Easy. I am asking one ..

Answer / supratik

We can write a funtion to get the value of all the links
run time. compare with the one needed and click on it

Set linka= description.Create()
linka("micclass").value="link"
set b=browser().Page().ChildObjects(linka)
z=te.count
For i = 1 to z-1
If b(0).getroproperty("name")="LINK NEEDED" then
b(0).click
end if

Next

Is This Answer Correct ?    1 Yes 0 No

It seems Interview questions from Ordain Solutions are almost BASIC LEVEL-Easy. I am asking one ..

Answer / patil

I couldnot understand the answer so that I couldnot tell
yours is right or wrong.
But,in no way we can use the Regular expressions to do this.
any another answer...

Is This Answer Correct ?    0 Yes 0 No

It seems Interview questions from Ordain Solutions are almost BASIC LEVEL-Easy. I am asking one ..

Answer / nanda.d

Hi Patil...i didnt get answer till now. pls send me that
answer as possible. it was asked by interviewer. pls dont
delay.

thanks in advance.....

Is This Answer Correct ?    0 Yes 0 No

It seems Interview questions from Ordain Solutions are almost BASIC LEVEL-Easy. I am asking one ..

Answer / kuldeep sharma

identify these objects by OR manager and see what are the
basic and unique property this link having and use
discreptive scripting with this property
for example:-weblink("text:=cityinfo")

Is This Answer Correct ?    0 Yes 0 No

It seems Interview questions from Ordain Solutions are almost BASIC LEVEL-Easy. I am asking one ..

Answer / naren

1. First get the Name of the weblink using getROProperty
during run time and store the value into a variable.
2. Compare the weblink name with the value stored in the
variable using IF condition
3. If true pass the variable value to weblink using
setToProperty and click the weblink

Is This Answer Correct ?    0 Yes 0 No

It seems Interview questions from Ordain Solutions are almost BASIC LEVEL-Easy. I am asking one ..

Answer / ashish wadhwa

Suppose the Browser name is "A" and the Page name is "B"
and say we have to pass any object whose name has been
changed. So, this object can be used as an argument in the
application along with the mandatory property "html tag".
Here as an example say the object name is "C". Note, this
object should be added in the object repository with its
name property as ".*" So, the function will be
Function clickItem(itemName,HTMLTag)
Browser("A").Page("B").WebElement("C").SetToProperty
("name"), itemName
Browser("A").Page("B").WebElement("C").SetToProperty("html
tag"), HTMLTag
Browser("A").Page("B").WebElement("C").Click
End Function

Is This Answer Correct ?    0 Yes 0 No

It seems Interview questions from Ordain Solutions are almost BASIC LEVEL-Easy. I am asking one ..

Answer / 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

It seems Interview questions from Ordain Solutions are almost BASIC LEVEL-Easy. I am asking one ..

Answer / nanda

HI,

by using resuler expression...we can solve this.

here we group the different expressions..

the solution is [a-b]*



please ping me if i am wrong...

regards..

Nanda..

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

I am a newbie to QTP / Automation testing. I want to develop a script that creates a data file automatically with proper headings using VBScript in QTP.

0 Answers   Adea Solutions,


write the code to reverse a string without using Strrev built in function.

14 Answers   ADP,


Hi we are using QTP9.0 for Seibel Application and this seibel application will give you a popup messagebox which is of web , so qtp takes 3 mins to recognize the messagebox and to click on it , we have more number of messageboxes like this . please suggest me some solution

0 Answers   CFC,


Can we create test script with out Step Generator?

4 Answers  


What do you to script when objects are removed from application?

0 Answers  


how to load the *.vbs (or) test generating script in a new machine?

3 Answers   Ordain Solutions,


iam have done mba(finance)in 2008. in 2008 one reputed consultancy came off campus interview our institution. i got job as "manual test engineer". now iam working as "manual testing engineer". now my problem is when iam going interview the interviewer asking like " ur mba gradute how can u get job in test engineer." this question i have faced every interview. iam explaining how iam getting job. but they are not trust me". pls tell me answer how i am giving relavent ans.. this is my mail id y.ramana84@gmail.com

0 Answers  


how can we retrieve ten rows from the data table using loop concept?

4 Answers  


HOW AND WHY TO CREATE EMPTY OBJECT IN QTP?

2 Answers   Patni,


in process of project exaplnation the defects are says frequently r not?

1 Answers  


How to create a standard checkpoint ?

0 Answers  


what kind of erros can be handled with the using QTP?

2 Answers   CTS, Satyam,


Categories