get the order no from the following orderdetails
orderstring="ORD13456PNR"
eg:13456
Answer Posted / qtp
use instrrev or InStr and get the index position using the
search string as PNR
after that bye using the mid function we can get the order
number
var pos=instr(order string,"PNR")
string1=mid(orderstring,3,pos)
msgbox (string1)
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Hi, I am working on microsoft infopath forms..It is standalone form..(not dotnet or web.) . I am not able to indentify any objects in it.. I am currently using active accessibility in the macro for the same but its execution is too slow.. Kindly help in case you have better solution.
What is system testing and what are the different types of tests you perform in system testing?
An action has both shared and local or associated to it and both have the same object in them. In the test which one will be considered?
in data driven testing for performing operations which method is easy from manual test data,keyword view,or from database.and why?
How to test fly out menu in qtp?
what are the frame work models of qtp?which frame work you follow in your company?and explain it process?
what is the difference between IE & Netscape in web testing on a log in page
I am getting the "test object property" Description properties "toolkit class" value By using "gettoproperty" in run time But my problem is how to get Ordinal Identyfier's type and value Type is index, value is 0 How can i keep this values in to required place How can i get these values in runtime I have to insert these "index" and "value" into another area Is there any script for this like "gettoproperties","Getroproperties" If anybody knows,please help me .
What is exact meaning of Database Checkpoint in QTP 9.2 and what are the different types of the database check points?
Explain in brief about the quicktest professional (qtp) automation object model?
what is supply chain management?
An object is non standard object, i mapped it to standard object, eventhogh on mapping to standard object i cannot use the methods available on the standard object with the mapped object. How i can use those standard object methods with these mapped object. (((Note : dont tell that we can use virtual object as virtual object is to map nonstandard obj to standard obj)))
what is impact analysis on regression testing?
If you giving priority as p0, as a developer if I give priority as p2, What happens In user defined function ?
What are the types of object repository in qtp?