Hi,
I am using OutputCheckPoint for 2 webelements Bed:4 and
Bath:2 Full,1 partial in my result page and I am storing
the value in the data table.
I dont need the string Bed:4,I would like to get only the
no 4.
How can I get it?
Even though I highlight only 4,It is seleting the full
value "bed 4".
Same thing happend for second webelement Bath:2 Full,1
partial
I need only the No 2.
I used the following to split
MyArray = Split(UIBathResult, " ", -1, 1)
But it is giving the value
My Array(0)=Bath:2full,1Partial
I need the only the nos for further comparision.Any help?
Thanks
Uma
Answer Posted / nath. t
Function returnNumber(str)
For i = 1 To Len(str)
num = Mid(str, i, 1)
If IsNumeric(num) Then
returnNumber = num
Exit Function
End If
Next
End Function
str1 = "Bed:4"
str2 = "Bath:2full, 1Partial"
str3 = "1Partial"
x = returnNumber(str2) 'You can send any string it will
find and return the first number in the String.
MsgBox x
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Where you are storing your script?
How many ways we can parameterize data in quicktest professional?
1 Folders in VSS 2 In navigation script there are 100 script i want to run first 50 and 37th script also not needed to run how to do this 3 What is navigation script,Driver script, business script what we are loaded in this script 4 use of resource tab 5 Difference between verification and validation give real scenario example 6 file scripting object when to use it 7 what are the problems you are faced while testing web application 8 difference between expert view and keyword view 9 difference between QTP 8.2 and QTP 9.2 navigation frame work please answer these questions from real time working people as early as possible
What is quicktest professional?
How to run a test using quicktest professional?
What are the two types of repositories available, explain them?
If u r using library files (Instead of Check Points) , How do u do bitmap check ?
could any help me please, how to work on visual foxpro application using UFT
how to idetfy which test cases are automated?who will deside that plz tell me
Write a script to customize the test results in PDF and HTML format.
What if recovery scenarios is also failed for identify the alert ? (We are handling unexpected popup through recovery scenarios but if still recovery scenarios also failed than what should be the approach)
How does quicktest professional (qtp) identifies the object in the application?
How to save your test using quicktest professional?
How does qtp identify gui object?
How to give a call to another action from one action?