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   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
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
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
 
0
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.
 
0
Maniram
 
 
 
 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
What is the difference between a Test and a Business Component? Is it necessary to use Business Component while testing an application in the real time?  2
In an Excel sheet take two fields as agentname and password and type some valid agentname and password.call that excel sheet in qtp so that qtp opens the flightreservation window taking into consideration how many records are entered in the excel sheet.For example if 3 records are entered today it will open 3 FR windows,if in near future the records are more than 3 then it will open that number of times.  2
How do u use Database checkpoints and what are the use? Qualtree-Solutions2
How To write script in QTP For Field Validation Example: password Field is accepting A range 8-20 characters only.How to write script?  1
There are 4 webpages in an application, in third page there is one cancel button i want to click that cancel button only, how can I click that cancel buttton ? Wipro3
what is virtual object?  1
Explain about opening notepad in QTP and writing of test result in notepad?  4
from where we will retrieve data for data driven tests in qtp?  3
how do u get lib files into scripting files?  3
what is test data Wipro3
Any one knows about descriptive programming to identify objects in a page? Kindly drop me mail prasanna.sabat@gmail.com  2
how to test Web application using QTP software BITS2
What is descriptive programming? Wipro14
How can the name of a checkpoint be changed in Qtp Ordain-Solutions2
In QTP, while launching qtp application from startup.. we find Advanced Keyword-Driven Testing caption.. wht is that...Anybody can pls explain it. Thanks in Advance US-Technology1
Older version QTP is 8.2 and New version QTP is 9.2. My question is, Why it is QTP 9.2, why not 8.3,8.4 .... why it is not something ?  1
can anyone tell me how to search a word/line in a document and to paste it in another file? Thanks in advance.  4
Can we do Load Testing with QTP?  1
How to send QTP test results to an email...(with out using Quality Center)?  7
what r the executing modes in QTP  2
 
For more QTP Interview Questions Click Here 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

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