if numbers are always changing write a script for that



if numbers are always changing write a script for that..

Answer / manju

pls go through regularexpressions consept

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More QTP Interview Questions

What are test settings and global settings?

0 Answers  


Can we check environment variable value without existing of environment variable

2 Answers   NIIT,


How to write test cases for web applications using QTP.plz write a sample test case to show how to write.urgently needed.thanks in advance..

4 Answers   IBM,


To count the no of links present in the yahoo home page i have written the script like this Set fileSysObject=createobject("Scripting.FileSystemObject") Set linksFileName=fileSysObject.opentextfile ("D:\samplelinkfile.txt",2,true) Set linkDescObj=description.Create linkDescObj("micclass").value="Link" Set noOfLinks=browser("yahoo").Page("Yahoo! India").ChildObjects(linkDescObj) For i=0 to noOfLinks.count-1 linkName=noOfLinks(i).getROProperty("name") linksFileName.writeline(linkName) Next linksFileName.close Set fileSysObject=nothing While running the script it showing error that object "yahoo"isnot found in the object repository. Is there any setting before running the script? if yes what is the steps for it.Im using QTP9.0

2 Answers  


where u maintain qtp scripts in ur company

4 Answers   HCL,






How to retrieve alpha bate from the alphanumeric string with special character.

7 Answers   ADP, Cap Gemini,


How can i see test results in excel sheet ? test data not present in data table.

5 Answers  


How to Run a Test using QTP?

1 Answers  


How can we retrieve the Bug Ids which are open&Reopen in status through QTP scrit?Please find the script which i tried... Dim objBugFactory, objBug Dim BugId Set TDConnection = QCUtil.TDConnection Set objBug = TDConnection.BugFactory If QCUtil.IsConnected then Reporter.ReportEvent 0, "Connected", "Connected to server: " + QCUtil.TDConnection.ServerName + chr (13) +"Project: " + QCUtil.TDConnection.ProjectName + chr (13) + "Domain: " + QCUtil.TDConnection.DomainName Reporter.ReportEvent 0, "Current time on server is","==>" & TDConnection.ServerTime Else Reporter.ReportEvent 1, "Not connected", "Not connected to Quality Center" End If If mybug.Status="Open" Then BugId=mybug.DefectId MsgBox BugId End If 'OR**********************************--------------------- -----********************************** If Bug_Fields("BG_STATUS").Value ="Open" Or "Re Open"Then BugId=Bug_Fields("BG_BUG_ID").Value MsgBox BugId End If

0 Answers   TCS,


actually how many hours per one day we will work on automation (qtp) in real time

1 Answers   Synechron,


how to open Excel sheet & write in it & save it?

1 Answers   InTech,


how you test broken link using the automated tool QTP ?

4 Answers   Oracle,


Categories