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 will be the output of the statements below? On error Resume Next Sum 100/0 if Sum= 0 Then msgbox "Pass" else msgbox "Fail" End If
Can u tell me example for virtual objects?
How can we do Data driven testing Using For loop in QTP?
How to retrieve particular cell data in excel sheet ?without importing method.
Diff b/w Health care domain and Banking Domain?
What is the difference between Functions and Action ?
what is meant by function library?Public and private functions in function library? if private functions are applicable for only for the particular test means then y we have to add those to function library?
In Manual testing , can u prpare bug report in TD?
What is object repository?
How to invoke QTP through VBscript?Send me full code along with description of the code.Thanks in Advance
What is the use of text output value in quicktest professional?
How to Creating an Output Value using QTP?