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 |
Can we use index on view?
What is API?
hi testers,one script has three actions , at the of running three actions are running , how to set run only perticular action and what is the use of split the action? when it will be useful?
dar Sir I am Facing th eProblem in QTP thet ,when I start thrcording inthe QTP for the ASP front end and C# the Coding Language I fing that recording is Done well for the Login screen but at the Time Running the script the QTP is Unable to Identify the Objects On the Objec Onht eLigin screen .Please answer the Question in Description and the Propables reason I might be facing alsp the Popable solution I have to Take thanks and ragards
How do you do batch testing in wr & is it possible to do in qtp, if so explain?
what is the Exact Meaning of Environment Variables?
Define object spy ?
Gmail application is there.On that Inbox so many mails are there including naukari mails. On that mails i can select the only naukri mail checkboxes. plz tell the descriptive code for the above..
In a yahoo web Application there are 65 links.one day it will opens 50 links and another day it will open 55 links.In this scenerio write Descriptive programing for Automation?....Pls write the code for this scenerio.
1 Answers College School Exams Tests, UHG,
how to automate standalone infopath forms using QTP? (it is not a dotnet or a web form)
Whenever we use GETROPROPERTY function.
Hi All,I am in wierd situation that my laptop is installed with QTP11 and os is xp sp3.The problem is the descriptive programming which i have written is working in other laptops and it is not working in my laptop.it is clicking the link which is above the testbox instead of typing it in textbox below it.It is same with the other working scripts written by another person.