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 a reusable action?
What is throw object?
Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..
What is object spy in quicktest professional?
What is the qtp testing process?
What is the purpose of loading qtp add-ins?
How do I get the QTP scripts result in xml format by using vb script function?
I want to grow as a Automation Engineer,Kindly help me in clearing my interview that what interviewer looks for as a Automation Engineer. I am having three years of experience in testing.
What is QTP’s model for test creation?
What is the parameterization? Give one example?
What are some test assets and related extensions of qtp?
How many types of status are there?
What is ObjectParamater?
how do u manipulating INI, DLL and / or registry files in support of your test environment? actually what do u mean by INI and DLL or registry files. plzzz its urgent do answer
What is environment variable in qtp and why to use it?