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
Can any one send me the QTP Basic Coding Samples?
Hi, i run scripts in one machine those r passed.when i run the scripts in client side those r failed.Give me such a scenario when ever u faced?
Sql questions to find second max salary and how to use joins
what is the hierarchy to use properties in descriptive programming
How can you write the scripts that operate on different objects depending on run-time information?
can i change the runtime properties of an object ? How can i check if a parameter exists in database ?
What is RTM (require ment tracebulity marix) fromate?
• What type of testing questions will be asked for 2+ yrs exp people in interview?
Write a script to customize the test results in PDF and HTML format.
How QA specialist can identify when programmatic descriptions are useful?
How to analyzing test results using quicktest professional?
1. wat are the main diff b/w QTP 8.0 AND QTP 9.2 ( not user interface) 2. wat is the meaning of Keyword in keyword driven frame work? 3. how u will handle the unknown errors while exucution. (not recovery scenario)
is there any addin for remedy user application
what is output value in QTP and how it can be used in automation testing
How to integrate the qualitycenter with qtp