Micro Focus QTP (UFT) Forums
I faced this question in interview - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Interview Questions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Interview-Questions)
+--- Thread: I faced this question in interview (/Thread-I-faced-this-question-in-interview)



I faced this question in interview - epo2l - 01-20-2010

we have 3 different site and has same button suppose sign in but all 3 sites have different properties what will be approach in QTP.

Plese help me i a new in QTP


RE: I faced this question in interview - Saket - 01-20-2010

Hi epo2l,
your query is not clear enough, would you like to elaborate a bit?


RE: I faced this question in interview - epo2l - 01-20-2010

Thanks for replying .I am trying to explain a bit more .i have some product and we sell on 2 different sites .on web we go kid section and choose boys
same we do on other site .
we are doing same thing but when we record they have different properties and we r trying we can use same action for both of link
how can ?
I hope it can help to explain


RE: I faced this question in interview - Saket - 01-20-2010

you should use descriptive programming here
something like - .weblink("text:=link","html tag:=A")


RE: I faced this question in interview - bfakruddin - 02-03-2010

Hi,

I got your question. We have a two sites... we have to perform same action on both of sites but using a one action / Function... they don't have similar properties.

We have a solution that... the property values which are not same in both of sites are passing as input parameters to Function or Action. Using those properties in that Action/Function and perform that Action.

I hope you got it.

If you don't, Let me know

Hello Saket,

I got your answer we use mostly descriptive on webapplications. But as per your question the property values you are providing are not changing dynamicallly then how it works on two different sites. He said that we have only one action to perform action on two sites.

Please let me know. If I am wrong.


RE: I faced this question in interview - Saket - 02-05-2010

That depends, you will have to observe the test objects and properties for both the sites.
if it can be regularised then can be done with a single action only.
in my earlier reply, i assumed the text will be same on both sites and that was just an example Smile


RE: I faced this question in interview - MahalakshmiDevi - 02-12-2010

We can pass properties to a function for constructing the .Weblink(...) depending on the site we are accessing.
In run time we shall create the object by using DP.


RE: I faced this question in interview - wheelercha - 02-19-2010

You could simply use checkpoints that verify other objects or wording on the page itself. I am assuming the pages don't all look the same. Associate the check point to a variable or use '.exist(1)' if it is TRUE then you know what page you are on regardless of the buttons and their particular properties (all being the same).

This is your answer. No need ot make it confusing.