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



In My application, having Copmany Name : Text Box and click Save button. if i enter a vlue, af..

Answer / aiswaryan

If numerics are allowed,
msgbox "ABC Company " & replace(replace(replace(date &
time,"/",""),":","")," ","")

Is This Answer Correct ?    2 Yes 0 No

In My application, having Copmany Name : Text Box and click Save button. if i enter a vlue, af..

Answer / ramesh

Thank You
Aiswaryan


Numerics are Not allowed, plz help m e

Is This Answer Correct ?    0 Yes 0 No

In My application, having Copmany Name : Text Box and click Save button. if i enter a vlue, af..

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

In My application, having Copmany Name : Text Box and click Save button. if i enter a vlue, af..

Answer / 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

More QTP Interview Questions

Explain synchronization types in QTP

2 Answers  


Hi, I got error message as "object does not support this property or method: "Test.Actions" when i execute the following line of script on QTP 9.0 Dim qtApp, qtRep Set qtApp = CreateObject("QuickTest.Application") Set qtRep = qtApp.Test.Actions("Action1").ObjectRepositories Can anyone tell me where i am wrong.

0 Answers  


one page contain next button.when we enter that its not going to next page.what type of error that one.

3 Answers   TCS,


How to change the scripts from Per-Action object repository to shared object repository

1 Answers  


How do you move objects from local object repository to shared object repository???What are methods?

1 Answers  






how to make connection to a remote mysql database in qtp any one can please provid eme deatail steps.

1 Answers  


What are output values and why they are used ?

0 Answers  


How many types of object repository in qtp?

0 Answers  


HoW to open QTP in Real time.after getting the qtp window how to log in .pl answer real time people

3 Answers   GE,


Scenario:2 combo boxes.1st combo contains a,b,c,d.2nd combo contains 10..20,20..30,30..40,.Selecting 'a' shld display 10...20,'b' shld display 20..30.. and so on.tell d script? 2.Random testing of 500 test cases in qtp?

1 Answers  


How do we edit the script in QTP. Anybody can explain in detail..Thanks in advacne...

3 Answers   IBM,


what is the exact testing process in qtp plz explin ?

2 Answers  


Categories