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


Please Help Members By Posting Answers For Below Questions

Can any one send me the QTP Basic Coding Samples?

1614


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?

1514


Sql questions to find second max salary and how to use joins

965


what is the hierarchy to use properties in descriptive programming

1504


How can you write the scripts that operate on different objects depending on run-time information?

2122






can i change the runtime properties of an object ? How can i check if a parameter exists in database ?

1415


What is RTM (require ment tracebulity marix) fromate?

1530


• What type of testing questions will be asked for 2+ yrs exp people in interview?

1260


Write a script to customize the test results in PDF and HTML format.

2086


How QA specialist can identify when programmatic descriptions are useful?

1974


How to analyzing test results using quicktest professional?

573


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)

1729


is there any addin for remedy user application

1744


what is output value in QTP and how it can be used in automation testing

1440


How to integrate the qualitycenter with qtp

1774