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 |
What are the various versions of QTP that have been released so far? Please also mention the year of release for each version
HoW to open QTP in Real time.after getting the qtp window how to log in .pl answer real time people
how to get font size of a "WebEdit"
how to retrive that the number of spaces are in a string ????
What are the enhancements u did after recording ur script?
How to handle Recovery scenario in QTP. give detailed explanation about recovery scenario.
Actually what is Quality center..is it Test Director or some other tool..Anybody can expalain it in detail..Thanks in advance..
how to download mercury qtp9.2 ny internet ?
If you giving priority as p0, as a developer if I give priority as p2, What happens In user defined function ?
What r the diffrernt file extentions in QTP?
What is the difference between the keyword view and expert view?
what properties do use to identify a browser and page while using descriptive programming?