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

What are the different types of action?

565


banking domain description for software tester for interview

3473


What is the extension of the qtp local repository? If it is .mtr then what is .bdb extension stands for?

575


How can i initiate the objects to find uniquely in OR

1480


Explain the Different types of QTP test assets and their extensions?

618






Explain calling sub procedure.

628


Is it possible to merge two object repository files in qtp?

629


Hi All, I have QTP installed on my machine but the application under test (AUT) is on remote desktop.My scenarios is like that,it should contain following steps. 1)Automatically it should click on start and then on remote desktop connection. 2)it should enter the IP address and then connect to remote desktop. 3)and then it should be able to record the application in remote machine and then run it also. Can somebody tell me how to record the application which is in remote machine.

1495


What is Cross browser testing? Does UFT support it?

632


What are the challenges you faced during you entire life automation ?

1016


What are parameterizing tests?

555


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?

664


Hi Samrat, Thank u very much, what u said it is right.

1353


How to connect the remote desktop using QTP 9.2 explain the method or procedure?

2807


Can anyone pls tell me how to do action parameterization (input and output parameters) with respect to login window and insert order of flight reservation window in detail( pls give a clear step by step explanation with example) anyone please. Will be very thankful to u

1385