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

When a requirement is given to u to automate , What is ur basic approach ?

4 Answers  


How to add multiple values in rows, under a single column of a run time datatable?

3 Answers   NIIT,


can any body pls mail me latest FAQ's in QTP to my mailid btrintra@gmail.com....Thanks in advance

0 Answers  


explain abt dyanamic changing object with example?

0 Answers   Wipro,


what is recovery scenario in QTP? what is the need of the recovery scenario in QTP? what are the advantages of the recovery scenarios in QTP?

3 Answers   CTS,






Plz explain about object propeties in object identification? means.. explain about 1. mandatory properties.2. assestive properties 3. ordinal properties.

3 Answers   TCS,


What is the difference between property and method?

2 Answers  


images are dynamically changes how to compare two images with out using the bitmap

0 Answers   Hexaware,


What will be the script for recovery scenerio.plzanyone give ans with aexample related to banking project

2 Answers   Yahoo,


Hi All, I have QTP installed on my machine but the application under test (AUT) is on remote desktop (i.e. I first connect to remote desktop from my machine in order to run the application). I am able to record the script successfully with QTP running on my machine and application running on remote. However, when i run the recorded script, system fails to run it and indicates me that it does not identify the object. Is it possible to record and play while QTP and AUT are not on same machine?

7 Answers   ABC,


How to change the run-time value of a property for an object in QTP?

4 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,


Categories