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
Answers were Sorted based on User's Feedback
Answer / aiswaryan
If numerics are allowed,
msgbox "ABC Company " & replace(replace(replace(date &
time,"/",""),":","")," ","")
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / aiswaryan
here is my another immatured code for your issue.
company=now
companyName=replace(replace(replace
(company,"/",""),":","")," ","")
replace(replace(companyName,"0","A"),"1","B") 'and keep on
till 9
| Is This Answer Correct ? | 0 Yes | 0 No |
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 |
How can we see the analog recording steps in QTP..the Steps are stored in a track file with an extension .dat..how can we open the file..
What type of problems one will face with QTP , if too many browsers are opened at a time?
How to explain a banking project in interview as a test engineer???
Write the Test Cases for ATM(Any Time Money)
What is creation time property and how does it work?
Use of Debug Viewer?
how to evalute defects in QTP script?
How can i get QTP 9.2 software or any webside where i can download ? can anyone help me out , i want to be expert in QTP ,but i don't have the software
waht is puirpose of accesbility Check point? waht is the use of Page and XML check points?
what type of automation is follwed in the project?
Hi, Am trying to download QTP 8.2 version.its not supporting Windows Vista.Can you please help me out from this.Which QTP version supports this. Thanks in Advance.
what is framework in QTP? any one give me answer