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

1. In build1 there is a page with two check boxes and a submit button. You have prepared a script for that page and its working fine. In Build 2 the developers have added two checkboxes in the page. Will the script prepared for Build 1 work for Build 2 or not. If yes, why and if No, why. Remember the developers have not touched the object properties of the textboxes in the page.

3 Answers   ADP,


tell me QTP standards ?plz

0 Answers   Kanbay,


what is output value in QTP and how it can be used in automation testing

0 Answers  


can anyone explain about the Descriptive programming in detail. I mean how to use in the script.

1 Answers  


Why VB scripts are used in QTP and TSL in Winrunner, is there any advantage of using VB Scripts

2 Answers  


What is qtpro?

0 Answers  


How to handle the exceptions using recovery scenario manager in QTP?

0 Answers   Crea, CTS,


What is checkpoint in qtp?

0 Answers  


how do u plan test automation?

0 Answers  


Hi All, How to get repeated word in string . Thanks Balaji

0 Answers  


What is OUTPUT VALUE ? PLZ Explain With Example?

5 Answers  


What is the use of defining a newobject in the object repository "Define New TestOject". How to use this further. If we define new testobject, how can it recognizes the objects properties of any application.

0 Answers  


Categories