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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How software tester can use constants and variables in scripts?

1689


What is the difference in the global and action sheet in qtp?

571


In qtp, explain what is crypt object

602


i have doubt suppose iam purly working in QTP, when i will work on sql and performence testing? pls any one clarify doubt?

1507


hi frinds i need help .i have 4 + yrs exp in testing and nearly 2 yrs exp in QTP and QC .currently iam working north fast 2 yrs iam looking for job in south is there any openings plz letme know my mail id is pbre1980@gmail.com

1574






before launching qtp, we need to close all the open browsers u dont know what are all the browsers either it might be ie,mozilla etc and u dont know how many brosers are open.... u need to close all these before launching qtp.. can anyone plz temme d solution...

7235


if anyone has idea of the interview procedure in covansys, plz send me a mail?

1534


What is the file extension of the code file and object repository file in QTP?

603


What is quicktest professional (qtp window?

596


On what document base Descriptive programming is written if build is not yet ready ?

882


How many test scenarios you have automated? How many time it will take to execute 30-40 scenarios? What SDLC model you are following? How often you will execute your test scripts? Because of some changes, your test scripts failed? When you will update your test scripts? How much time it will take to update? Do you know how to connect database? Do you know the direct method to count no. of records (or) rows present in record set once query is executed? How will you create the connection string? How did you resolve conflicts present in Object Repository? How good you are in VB? How will you work on Excel Application? How will you select Excel sheet? If you want to select 10 sheets, will you create 10 separate objects? Given string is “abcd”. What are the methods you will use to display “dcba”? Drives script – explain the frameworks? How you are updating results for each test? What is start up, configuration, navigation scripts? If you are not able to understand the application (some module), who will teach you? What test cases to be automated? When to be automated? What is the testing process you are following? What life cycle you are following? When you will use Descriptive Programming? Do you have the permission to add objects into shared object repository? (OR) someone will maintain SOR? Do you know how to add objects into shared object repository? How many test cases you have automated? How much time will it take to execute? What is complex in automation? When you feel automation is complex? Tell me one scenario, the complex functionality you have automated in your project? Excel sheet having some datas and some datas present in the application (in table). How will you compare these two datas? Write code to fetch datas from Excel sheet. Rate yourself in SQL? Display the employee name who is getting maximum salary? sal ID Salary name 001 100 002 500 003 300 ID 001 002 003 Ename A B C Have you written any test cases while you are in Automation? Manual Testing also will you do or you will work only in automation?

2227


How to handle dynamic objects in quicktest professional (qtp)?

549


Can any give an example(if possible templates) how to test web application using QTP. thanks in advance

1561


I would like to directly import XL file and work on that XL file directly in QTp script in that XL sheet need to allocate workbench,XL sheet and generate two bar graphs automatically how to do that? plz let me know any answers?

1567


I want to know what are QTP functons and what are VB script functions. What is the difference between them.When we have to use these functions.

1304