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


1) How will you associate SOR in Runtime? ( u had written 10
lines of code from 11th line u want associate what code u
will write)
2) How will close n number of browser expect only one which
is has to test? ( First tell me how will you identify how
many browser are opened ) what logic u will use?
3) In web Table u want to click on link ( Link Name Mohamed
) you dont know in which row and column that link is there.
how wil u identify and click on that link.

Answers were Sorted based on User's Feedback



1) How will you associate SOR in Runtime? ( u had written 10 lines of code from 11th line u want as..

Answer / prasant87

1)Write the below code after line 10 -

RepositoriesCollection.Add ("C:\Test\ObjRes.tsr")

2)Please some one tell the logic. I do not know:(

3. Capture the link property and write the code to click on that.

Is This Answer Correct ?    1 Yes 0 No

1) How will you associate SOR in Runtime? ( u had written 10 lines of code from 11th line u want as..

Answer / prathyusha

We can go for descriptive programming to get the collection of browsers.

set obrowser=description.create
obrowser.add "micclass","Browser"
set obrowsercol=Desktop.childobjects(obrowser)
msgbox obrowsercol.count

from this we can get to know howmany browsers are opened.

if you don't want to close particular browser we can get the name of the browser using getroproperty("name") then we can match that browser with expected one then we can close remaining browsers.
set obrowser=description.create
obrowser.add "micclass","Browser"
set obrowsercol=Desktop.childobjects(obrowser)
for i=0 to obrowsercol.count-1
browsername=browser.getroproperty("name")
if browsername <> "Google" then
obrowsercol(i).close
end if

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

where exactly we can't do the automation testing. give some examples

2 Answers   Virtusa, Wipro,


Which environments are supported by hp qtp?

0 Answers  


how can i do QTP Certification can any 1 tell me . How 1 approch and who to approch

7 Answers   ADP, Hydus,


While creating Recovery Scenario for Pop-up window..In 'Recovery operation' we have to call a function. Can u tell me that function.

4 Answers   Alcatel-Lucent, Ordain Solutions,


Can we use smart identification in Keyword Driven approach? If yes , How we can use. Please Explain?

1 Answers  


How to identify the objects using descriptive programming when the object property values are same, i mean in a page 10 objects are there i want to click the 6th object but all the object property values are same? using descriptive programming

2 Answers   Genpact,


am not having intrest in coding lang like c c++ java etc can i choose Testing tools as my carrier and please suggest me which tool is good (suitable for me)

0 Answers  


How to find the name of the machine where you are running your automation scripts in qtp?

0 Answers  


i m tryed to use qtp in a user registration form but at the "image enter"part it gives a error when i run the qtp bcz the image is changed every time so it gives a error when i use regukar expreesion fot this it still gives a error value bcoz it reads the image code bt nt reconige the image which i enter in the image verification text box.so hw can i automate qtp for this function.plz give me a answer

1 Answers  


can u explain relative path architecture framework in qtp?

0 Answers   Mindlance,


Explain runtime dynamic settings?

0 Answers  


Create an Excel file and pass the values from Flat File? (for ex:data1.txt,data2.txt )

2 Answers   FIS,


Categories