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

what is meant by "Parameterization technique"?

4 Answers   KH, Mind Tree,


Hello, How can i capture first letter of any string using QTP. For ex.. i want "j" in the below string "john" could any one explain me? Is there any function for that?

4 Answers   Livetek,


What is an environment variable?

1 Answers  


How to supress warnings from the "Test results page"?

2 Answers  


There is one parent browser and 'n' number of child browsers on desktop. Write a code to close all the child browsers but parent browser should not be closed.

1 Answers  






write a qtp script to enter user name & password for flight reservation login page from excel sheet

1 Answers  


Syntax for how to call one script from another? and Syntax to call one "Action" in another?

2 Answers  


Explain the concept of object repository and how quicktest professional recognises objects?

0 Answers  


Suppose i have a script which is having 100 lines.I want to execute that script starting from line no 75.means first qtp should read the script from line no 75 how can u do it.

5 Answers   Lehman Brothers, rsystems,


hi i have one issue while selecting weblist i want show one particalur item in weblist .ex one weblist they are monday to sunday i want show the reporter like thurday in particular weblist can you help me about this thanks balaji

5 Answers  


Dim ExcelSheet Set ExcelSheet = CreateObject("Excel.Application") excelsheet.application.visible = true ExcelSheet.ActiveSheet.Cells(1,1).Value = "This is column A, row 1" ' Save the sheet. ExcelSheet.SaveAs "C:\DOCS\TEST.XLS" ' Close Excel with the Quit method on the Application object. ExcelSheet.Application.Quit after run this script i am getting error"The test cannot continue due to unrecoverable error"

3 Answers  


How to upload excel files into Quality Center using QTP Script and how to delete excel files from Quality?

0 Answers  


Categories