Hi,The question is write a script for the following
scenario.
scenario:in a job portal i entered QTP 3yrs testing then
click search button.then it displays results like
Test lead bangalore (here is a checkbox).
Test lead hyderabad check box
so on...
question is if test lead position in bangalore then
checkbox shld be enabled automatically..

Answers were Sorted based on User's Feedback



Hi,The question is write a script for the following scenario. scenario:in a job portal i entered ..

Answer / balaji

Better Capture the webtable rowcount and columncount like
row=Browser("<name>").Page("<Page>").Webtable
("<tablename>").rowcount
column=Browser("<name>").Page("<Page>").Webtable
("<tablename>").columncount

For i=1 to row
For j=1 to column
val=Browser("<name>").Page("<Page>").Webtable
("<tablename>").getcelldata(i,j)
if instr(val,"Test Lead")>0 then
Browser("<name>").Page("<Page>").Webtable
("<tablename>").childitem("Webcheckbox",i,j).Select "On"
next
next

Reach me @9894207910 if u want more info.

Is This Answer Correct ?    3 Yes 0 No

Hi,The question is write a script for the following scenario. scenario:in a job portal i entered ..

Answer / suresh

vbCheckBox("name").set "ON"
is to select the specific CB.
Iam afraid, I could not understand what you are asking
for...

Is This Answer Correct ?    2 Yes 0 No

Hi,The question is write a script for the following scenario. scenario:in a job portal i entered ..

Answer / sri satya

Your question is not clear, can u tell me once again clearly

Is This Answer Correct ?    1 Yes 0 No

Hi,The question is write a script for the following scenario. scenario:in a job portal i entered ..

Answer / tvs ramakrishna chowdary

balaji is obsolutely correct...

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More QTP Interview Questions

How to capture a window in qtp or how to take snapshot of any window while writing script in qtp

3 Answers  


What is the difference between Call to Action and Copy Action?

2 Answers   Satyam,


I used the below code to open QTP through VBscript?But i can unable to Invoke QTP...PLZ help me with the correct code to invoke QTP through VBS with description of the code aswell. Dim qtApp 'As QuickTest.Application 'Declare the Application object variable Dim qtTest 'As QuickTest.Test 'Declare a Test object variable Dim qtResultsOpt 'Declare a Run Results Options object variable Set qtApp = CreateObject("QuickTest.Application") 'Create the Application object qtApp.Launch 'Start QuickTest qtApp.Visible = False 'Make the QuickTest application visible qtApp.Open "C:\form", True 'Open the test in read-only mode 'set run settings for the test Set qtTest = qtApp.Test qtTest.Run 'Run the test 'WScript.StdOut.Write "Status is: " & qtTest.LastRunResults.Status 'Check the results of the test run qtTest.Close 'Close the test qtApp.quit 'Close QuickTest Pro Set qtResultsOpt = Nothing 'Release the Run Results Options object Set qtTest = Nothing 'Release the Test object Set qtApp = Nothing 'Release the Application object

0 Answers   ADITI,


What is diff betwee datatable.importsheet "path" and datatable.import

2 Answers  


Which object model is not supported by QTP? a)COM b)DECOM c)DOM d)DCOM. Pls explain about theese object models?

1 Answers  






How you can make an action as re-usable action?

0 Answers  


how can i parameterize a login page by using database parameterization i fetch the username and password from database and put this on login page and click on ok button. so how can we write script for that code please let me know asap thanks

4 Answers   iCreate,


How to creating an output value using quicktest professional?

0 Answers  


please write a script to find the text in a application. Note: i dont know the location of that text where it is located. just like negative testing.

2 Answers   BSL,


How to handle Run-time errors?

1 Answers   Crea,


Explain the concept of object repository & how QTP recognises objects?

1 Answers  


What is Tree view?

2 Answers  


Categories