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
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 |
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 |
Answer / tvs ramakrishna chowdary
balaji is obsolutely correct...
Is This Answer Correct ? | 1 Yes | 0 No |
How to capture a window in qtp or how to take snapshot of any window while writing script in qtp
What is the difference between Call to Action and Copy Action?
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
What is diff betwee datatable.importsheet "path" and datatable.import
Which object model is not supported by QTP? a)COM b)DECOM c)DOM d)DCOM. Pls explain about theese object models?
How you can make an action as re-usable action?
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
How to creating an output value using quicktest professional?
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.
How to handle Run-time errors?
Explain the concept of object repository & how QTP recognises objects?
What is Tree view?