ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
you written some code in qtp for opening google.com browser 
and entered some text inthe search text box and clicked 
search button. this is ur script..

before running this script i have already opened two 
google.com browsers.
now am running the script what will happen?
script will run or what??

Thanks...
Nani
 Question Submitted By :: Nani
I also faced this Question!!     Rank Answer Posted By  
 
  Re: you written some code in qtp for opening google.com browser and entered some text inthe search text box and clicked search button. this is ur script.. before running this script i have already opened two google.com browsers. now am running the script what will happen? script will run or what?? Thanks... Nani
Answer
# 1
Yes Nani even if u opend google the browser,if run another 
script,script will open another web page   and performs 
wat ever u wrote in that script.

For example i am providing a script for opening a 
google.co.in web page and seraching for 'search' on goolge.
Code:

Set IE = CreateObject("InternetExplorer.Application")
IE.Navigate "http://www.google.co.in"
IE.Visible = True
Wscript.Sleep 8000
IE.Document.All.Item("q").Value = "serach"
IE.Document.All.Item("f").submit()

Copy above code in notepad abd save it serach.vbs on desk 
top.

then click on file after saving it desk top.

this scripts runs and opens goog.co.in web page.
if u click once again it will open again a web page.

If u have any doubt please mail me

byee
Rajendra Prasad Reddy
rajendra_penumalli@yahoo.com
Test engineer
Hyderabad
 
Is This Answer Correct ?    0 Yes 1 No
Rajendra Prasad Reddy
 
  Re: you written some code in qtp for opening google.com browser and entered some text inthe search text box and clicked search button. this is ur script.. before running this script i have already opened two google.com browsers. now am running the script what will happen? script will run or what?? Thanks... Nani
Answer
# 2
I Guess this depends on how u have recorded the script.
Case1:
 if u have recorded the script with many google
pages(windows) open, as there are many windows open, QTP
identifies the ordinal identifier and stores it in the
repository.
So if we run the script, in this case you will not encounter
any problem even if there are hundreds of such windows.

Case2:
 If u have recorded the script with only one google window,
QTP will not store the Ordinal Identifier as it can clearly
identify the window we have specified.
So if we run the script, after opening many google windows,
QTP cannot identify the window in which it has to perform
the operations. so it returns an error.
 
Is This Answer Correct ?    3 Yes 1 No
Maniram
 
 
 
  Re: you written some code in qtp for opening google.com browser and entered some text inthe search text box and clicked search button. this is ur script.. before running this script i have already opened two google.com browsers. now am running the script what will happen? script will run or what?? Thanks... Nani
Answer
# 3
For example if 2 google browsers are open, QTP considers 
the first opened google browser during test run and 
completes the test successfully
 
Is This Answer Correct ?    0 Yes 2 No
Priya
 
  Re: you written some code in qtp for opening google.com browser and entered some text inthe search text box and clicked search button. this is ur script.. before running this script i have already opened two google.com browsers. now am running the script what will happen? script will run or what?? Thanks... Nani
Answer
# 4
Google Browser does get opened and the script execution 
stops there
 
Is This Answer Correct ?    0 Yes 1 No
Kishore
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
In 1st screen,if v enter a/c no. in one field, the information of the subscriber will be displayed. The details should be displayed only in screen 3(NOTE:details should not display in screen 2).How can v do using QTP. BirlaSoft2
Write a user defined function to count the no. of buttons existed in a webpage ? i dont want to use descriptive.create () IBM4
how do check the links in a webpage ? Accenture4
How good are you in writing VBscript code for your application? Can you completely write VBscrit for your project with out using recording mode in QTP? CTS3
Can you import and export data from XLS and how?  4
wt is automation framework? give explonation? Mindlance1
How to execute a WinRunner Script in QTP? IBM1
How to test whether the navigation i.e. from one page to another is working r not using QTP for web based application  1
What are the versions of qtp,What are the differences b/n them? TCS1
What is the process for creating an automated test script using QTP assuming you have reviewed the manual test case and understand the requirements? Infosys1
Hi Friends, Can any one answer this question? 17) What method is used to retrieve the number of columns in the query results? A. Fields.Count B. Fields.Item(EOF) C. Fields.Count(BOF) D. Fields.Count.Value  1
Hi, Can any body please tell me how to create framework in qtp & where i can get some material to learn about it. regards, rahulT  1
what are the disadvantages of qtp? can linux support qtp9.2? how could get web address throu vbscript? Quintegra6
It is regarding VBScript, how to export our function results to ExcelSheet through VBscripting. Ex: I have written add function, that result should export to Excel.  3
can objects recogonised without repository? AZTEC8
which checkpoint we use to validate yahoo login screen window after login with ur id and password in qtp Covansys8
if there is a web table of having row and colmns.a button is placed at 2nd row's 3rd column which is worked for both edit and delete..how to write script for the button to test both operation on the web table using desriptive programing.. plz help me on script wheather using getroproperty Q2)what is the command for taking valiue from a web table in qtp Logica-CMG2
How can we do this one ? at runtime qtpwindow and browser aren't disply on monitor (or) aren't visible on desktop?how?  1
What is Virtual Object? Plz Explain me with an example? Ordain-Solutions2
Diff between WEB APPLICATION AND CLIENT-SERVER APPLICATION?  2
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com