I want to check in the data table(Globalsheet) column exist
or not through script .If column not exist only proceeded
to next step Pls tell me how to proceeded?
Answer Posted / ravi bandaru
Function isParameterExists(sheetName, paramName)
isParameterExists = FALSE
ParamTotal = DataTable.GetSheet("Global").GetParameterCount
For i = 1 To ParamTotal
value = DataTable.GetSheet("Global").GetParameter(i).Name
Msgbox value
If strComp(paramName,value)=0 Then
isParameterExists=TRUE
Exit Function
End if
Next
End Function
'Example:
If isParameterExists("Global","hh") then
msgbox "Patameter exists"
Else
msgbox "Patameter does not exist"
<Your statements>
End if
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
What is the file extension of the code file and object repository file in QTP?
What is the diff between image and bitmap check point?
tell me abt a time when u had to go above &beyind the call of duty to get the job done
How many types of recording modes in the qtp?
How to modify the text checkpoint?
In qtp, explain what is qrs file?
I used child objects to get the no of weblist present in the weblist.now i need to select the items present in each weblist ?How to do so
What is meant by a Check Point in UFT? Also, explain the applicable Check Points.
Explain more about the Test Fusion Report of QTP?
What is a programmatic description?
Explain the new feature of UFT regarding the export of test results?
Suggest and Define a solution for an application whose objects are not recognized by UFT?
Explain measuring transaction.
How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?
What is the qtp testing process?