In My application, having Copmany Name : Text Box and
click Save button. if i enter a vlue, after run..........it
shows the already exists. so
how to enter random ro mmultiple names names into webedit
box(company Name). without using DATATABLE
THanks
Ramesh
Answer Posted / ashok kumar
Chars =
array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z")
For i = 1 to 4
random = Rnd()*26
random_value = random_value & Chars(random)
Companyname = "CompanyName_"&random_value
Next
Result:
CompanyName_s
CompanyName_so
CompanyName_sop
CompanyName_sopi
--------------------------------
If you don't want loop, then remove the 'For' loop and write
'Randomize' below the array...
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what is the structure for the data driven framework
Diff b/w test scenario's and test Procedures?
Explain the types of properties that quick test learns while recording?
Why qtp the best testing tool?
Where is the resultset of a sqlquery (which is fired by rsobj.open sqlquery,xxxx,xxxx) stored ?
How many ways we can parameterize data in quicktest professional?
In an interview, what r the general questions asked in SQL which is realted to testing ?pls give me anwser to this question?
whare exactly we have to use functions and sub routain
Through array we can execute the testcase how ? give me example
How to create a standard checkpoint ?
Mention what are the different types of recording modes in qtp? Which will be used when?
How to handle dynamic objects in quicktest professional (qtp)?
Where can I find and view run-time data table?
Can anyone pls tell me in realtime (descriptive programming) how will the properties of the object be given to the test team. R they given in an excel sheet and is the same sheet also given to the development team and by whom is this given? Thanks a lot.
Hi Samrat, Thank u very much, what u said it is right.