i am giving.multiple names like ram,raj,san etc....pls enter & search these names in google pade edit box through script...
i told to interviewer, using Ms excel & test easily..but interviwer not happy with that answer?

Answers were Sorted based on User's Feedback



i am giving.multiple names like ram,raj,san etc....pls enter & search these names in google pade..

Answer / manjunathareddy

SystemUtil.Run "iexplore.exe","www.google.com"

Arr=Array("ram","raj","san")

For i=LBound(Arr) to UBound(Arr)
Browser("name:=Google").Page("title:=Google").WebEdit("name:=q").Set Arr(i)
Browser("name:=Google").Page("title:=Google").WebButton("name:=Google Search","type:=button").Click
Browser("name:=.*").Close
Next

Is This Answer Correct ?    3 Yes 0 No

i am giving.multiple names like ram,raj,san etc....pls enter & search these names in google pade..

Answer / mithuna reddy

Hi Manjunath, done some modifications to your script
please let me know if it is wrong after the first iteration of For loop when the browser object is close the second iteration would throw an error, so I have put SystemUtil in For loop

Arr=Array("ram","raj","san")

For i=LBound(Arr) to UBound(Arr)
SystemUtil.Run "iexplore.exe","www.google.com"
Browser("name:=Google").Page("title:=Google").WebEdit("name:=q").Set Arr(i)
Browser("name:=Google").Page("title:=Google").WebButton("name:=Google Search","type:=button").Click
Browser("name:=.*").Close
Next

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More QTP Interview Questions

what testing activities u may want to automate?

2 Answers  


What is object & properties (in QTP)

5 Answers   Ordain Solutions,


with out object repository i need to launch IE and then navigate to a login page and then operate the objects within the page. How will be the script?

3 Answers   Ordain Solutions,


What are the key points to create a framework in QTP for oracle forms?

0 Answers  


write progamming connecting QTP to database sql? this is question asked by interview? please give sql, pl/sql related answer?pls any answer this?

3 Answers   IBM,






how to test globalisation testing using qtp? lets take an example: suppose i have to test the word is in hindi "ratikanta", how we test it by using descriptive programming or any method??

2 Answers   Siemens,


what are the metrics in general we use in testing

1 Answers   Tanla Solutions,


what questions i have to pripare for project manager round interview ? plz give Ans.(Chandana)

5 Answers   TCS,


how can you write a script without using GUI in QTP?

5 Answers   Ordain Solutions,


Please let know the scripts for counting number of repeated letters in the word. Note repeated letter should not be count agian. Ex: If "Hello" is my word... l is coming twice.. it should count once and print... secong 'l' should not count again..

5 Answers  


what frame work you are following?

0 Answers   Wipro,


Subj: realtime example of Database check point, Can any one please detail on how the Database check point is utilized/implemented in a real time project. I already know how to make one by creating DSN/ODBC and writing the required query manually and other steps...I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thank you in advance

0 Answers  


Categories