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

How to start recording using quicktest professional (qtp)?

0 Answers  


Add parameters during time in each row in one column

0 Answers  


Hi Everybody, Can anybody please tell me the how to display the result of the QTP in the notepad text file rather than in the QTP result window. Suppose this is my simple script:WHich will open the notepad file and enter some text and then will change the font then will calculate how much time has been taken.Now, in this script i want to display the result in notepad file. Dim s Dim starttimer,endtimer,timeit s="uyetuywqtywqte" SystemUtil.Run "notepad","","Y:\","" Window("Notepad").WinEditor("Edit").Type micCtrlDwn + "s" + micCtrlUp Window("Notepad").Dialog("Save As").WinEdit("File name:").Set "test1" Window("Notepad").Dialog("Save As").WinEdit("File name:").Type micReturn Window("Notepad_3").Type s Window("Notepad_3").WinEditor("Edit").Type micCtrlDwn + "s" + micCtrlUp starttimer=timer Window("Notepad_3").WinMenu("Menu").Select "Format;Font..." Window("Notepad_3").Dialog("Font").WinEdit ("Font:").Type "cou" + micDwn Window("Notepad_3").Dialog("Font").WinComboBox ("Font:").Select "Courier" Window("Notepad_3").Dialog("Font").WinEdit ("Font:").Set "Courier" Window("Notepad_3").Dialog("Font").WinEdit("Font:").Type micReturn endtimer=timer timeit=endtimer-starttimer print(timeit) Please also tell me where the function for the text file result will be declared and where it should be called. Thanks, Gaytri

2 Answers  


what is difference between application testing and product testing?

5 Answers   IBM,


Explain how Does Run time data (Parameterization) is handled in QTP?

0 Answers  


What does ".mst" stands for? (abc.mst)

3 Answers   Infosys,


How to modify object property in qtp ?

0 Answers  


What is the synchronization point in qtp?

0 Answers  


. Types of properties that Quick Test learns while recording?

2 Answers  


I came across Good question ..... Write a script to only download pdf's if there are 20 links on a page. Kindly reply these type of questions are pretty challenging..

4 Answers   Keane India Ltd,


How can I test the unix shell in QTP

2 Answers   Persistent,


object types is used for what?

1 Answers  


Categories