How to retrive data from a data table which is in 3rd
row,4th column and place it in main script..like retrive
name,date from data table..write script for this.
Answers were Sorted based on User's Feedback
Answer / sushil
'set the current row to 2nd
DataTable.SetCurrentRow (2)
'get the value of 3rd coloumn of 1st sheet.
abc = Datatable.value(3,1)
this code is working fine, i have checked.
| Is This Answer Correct ? | 8 Yes | 2 No |
Answer / nayan
you can try this,
VAR_NAME = DataTable.GetSheet(sheetname).GetParameter
(4).ValueByRow(3)
Hope this work out ...............
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / deepika
Hi... U can try this,its working....
Set T=DataTable.GetSheet(1).GetParameter(3)
DataTable.GetRowCount
R=DataTable.GlobalSheet.SetCurrentRow(3)
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / deepika
Set T=DataTable.GetSheet(1).GetParameter(4)
'n=DataTable.GetRowCount
DataTable.GetRowCount
'For i=1 to n
R=DataTable.GlobalSheet.SetCurrentRow(3)
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / ravikumar
set datatable to 2nd row
datatable.setcurrentrow(2)
dim abc
need to get data from the sheet
abc=datatable.value(3,1)
sure thiscode will work fine
| Is This Answer Correct ? | 1 Yes | 2 No |
Answer / deepika
Hi... if it is 4th column then GetParameter(4).Try this..
Set T=DataTable.GetSheet(1).GetParameter(4)
DataTable.GetRowCount
R=DataTable.GlobalSheet.SetCurrentRow(3)
| Is This Answer Correct ? | 1 Yes | 2 No |
Hi,
Try this
Datatable.SetCurrentRow 3
val = Datatable.Value(4)
| Is This Answer Correct ? | 1 Yes | 2 No |
Answer / shweta gupta
U can try this...
datatable.Setcurrentrow(3)
a=datatable("<4th Column Name>", dtglobalsheet)
| Is This Answer Correct ? | 1 Yes | 2 No |
Answer / k.chandra sekhar
My name is k.chandra sekhar,
My phone no is 09246540049,
Hyderabad.
My mail id is ndra_143@yahoo.co.in
If any body want full explain send the mail
Any doubts call me (ONLY GIRLS)
| Is This Answer Correct ? | 2 Yes | 4 No |
Answer / k.chandra sekhar
a) That is the data table (column, sheet)
b) If want script then start record and retrieve the
data table form 3rd row and 4th common then stop the
recording the you get the script that is the scripts
My name is k.chandra sekhar,
My phone no is 09246540049,
Hyderabad.
My mail id is ndra_143@yahoo.co.in
If any body want full explain send the mail
| Is This Answer Correct ? | 2 Yes | 7 No |
if you have the same application screen with 7 drop down boxes and approximately 70 values how do you test with QTP?
How to build scripts that access data from external sources?
I am in .Net development for past 3.5 years and want to enter in to automated testing and learn QTP. For this I need some good tutorial for beginners. I will be really greatful if any one has and they can send it to me on this address- ruchidureja@gmail.com
Hi ,Can any one pleas explain how to test splash objects using QTP?
In an interview, what r the general questions asked in SQL which is realted to testing ?pls give me anwser to this question?
what are the mandatory properties in qtp? what are the library functions in qtp?
How will u find that how many List boxes( and check boxes) are present in one particular window
What are Test case selection criteria for Automation?
Why do we use text checkpoint as we can make use of the same in the standard check point?
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
Syntact for how to call one script from another? and Syntax to call one "Action" in another?
How may types of defects identify application or your currently working application?pls give me answer..