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

Answers were Sorted based on User's Feedback



you written some code in qtp for opening google.com browser and entered some text inthe search tex..

Answer / maniram

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 ?    10 Yes 2 No

you written some code in qtp for opening google.com browser and entered some text inthe search tex..

Answer / rajendra prasad reddy

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 ?    6 Yes 2 No

you written some code in qtp for opening google.com browser and entered some text inthe search tex..

Answer / kishore

Google Browser does get opened and the script execution
stops there

Is This Answer Correct ?    1 Yes 3 No

you written some code in qtp for opening google.com browser and entered some text inthe search tex..

Answer / priya

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 8 No

Post New Answer

More QTP Interview Questions

Explain the concept of object repository and how quicktest professional (qtp) recognises objects?

0 Answers  


Syntax for how to call one script from another? and Syntax to call one "Action" in another?

3 Answers  


What is quicktest professional?

0 Answers  


1.How to find in which row or column,string "Hyderabad" exist in excel sheet? 2.How to find how many times character "a" repeated in a given string "Koteswararao"

6 Answers   Ness Technologies,


How to connect to oracle(sqlserver) database to QTP

3 Answers   CTS,






can i automate java web application using qtp web addin only not using java addin

1 Answers   Infosys,


How to find the OS name by using QTP script?

2 Answers   IBM, Tech Mahindra,


While writing script using For Next Statement in QTP, I try defining the variable in Lib File I am getting syntax error whereas if I use the variable in script file, the script works fine. Can anyone help me in finding the reason behind this?. E:g Dim intStartRow (Define in Lib File----- say abc.vbs) Dim intRow (If I define this variable in Lib file I am getting Syntax error where as if I define in the script file ---- say xyz.mts the script works fine) IntStartRow=2 For intRow = intStartRow to xlWrksht.UsedRange.Rows.Count ‘Some Code here Next

1 Answers  


Explain the QTP Tool interface.

2 Answers   Crea,


Could you please any body help me.for example in web table in the first row and first column there are 3 links like l1,l2,l3 having indexes 0,1,2 but second time links will change their order like l2,l3,l1 and indexes also changed how can we handle this situvation with script....

2 Answers  


What is the difference between client server application and web based application?

1 Answers   IBM,


I want to create Excel object on another machine which is in network i written the code "Set se=createobject ("Excel.Application","\\ankur")"here \\ankur is the name of that machine but i m getting the error of permission denied create object can anybody help me

2 Answers  


Categories