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.
Answer Posted / 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 View All Answers
What is data driver in qtp? Where we use it?
Can we record using all the modes in a single script? Explanation with example is appreciated
Are Shared ORs read-only?
i have asked earlier only one question how to test web application using QTp plz send me the answer quickly
please post the interview questions for QA position in FACTSET
How you can replace string in qtp?
who QTP recognizes the object stored in object repository?
A FORM CONTAINS 5 FIELDS. 1 FIELD IS ENABLED REMAINING(4) FIELDS DISABLED. MY QUESTION IS ENTER VALUES INTO 1 FIELD AFTER THAT CLICK TAB BUTTON THEN 2 FIELD ENABLE THIS PROCESS CONTINUE UPTO 5TH FIELD. HOW TO WRITE CODE IN DESCRIPTIVE PROGRAMMING. PLZ TELL ME THE PROCEDURE AND CODE FOR IT.
When Recovery scenario actually starts while testing the application?
What is an expert view and keyword view?
How to connect to a database?
Call to copy of an action and call to existing action… i know the diff but in real project how to use..? i want live scenario.pls help me..
What is recovery scenario manager? When you go for recovery scenario manager? Tell me one scenario were your used recovery scenario in your project?
How you can decide which type of object repository you have to use?
i can done the project with QTP in that time i can say how many members in my team size?