QTP script for runtime changing objects
Hi,how I can write the script for the runtime changing objectsfor example my webtable name is "wtable"its containing n number of links "120 orders" "130 orders" "100 orders".......These orders text will dynamically changing like "120 orders" can be change as "121 orders"in this how can I write code...
What is a file system object in QTP
Answered by: chitta10
View all questions by chitta10 View all answers by chitta10
Member Since Jul-2009 | Answered On : Mar 29th, 2010
File system object is to create a file where you can store your informations and also read. Have a look to my exemple I think you can understand it.
SystemUtil.Run "iexplore.exe","","C:Documents and Settingsuser18Desktop",""
Browser("Google").Page("Google").Link("Gmail").Click
Browser("Google").Page("Gmail: Email from Google").Sync
Dim x,y
Set x = CreateObject("Scripting.FileSystemObject")
Set y = x.Createtextfile("d:testfile.xls",true)
If Browser("Google").Page("Gmail: Email from Google").Exist Then
y.writeline("step1 login details is pass")
else
y.writeline("step1 login details is fail")
End If
Browser("Google").Close
Thanks and regards,
CHITTA.
File system object is to create a file where you can store your informations and also read. Have a look to my exemple I think you can understand it. SystemUtil.Run "iexplore.exe",""...
Question: How do we load a text file from QC?Answer:strFilePath = PathFinder.Locate("[QualityCenter] SubjectFolderNameAttachmentName.txt") Const ForReading = 1, ForWriting = 2&nb...
I'd get all the link objects for the page, or object that match a certain criteria. In this case, all your order links match ".*orders", then run a loop to click each of themFor example:...
Browser(B).Page(P).Link("120 orders").click (Runtime this text may change)
here use getcelldata(row,column)
a=Browser(B).Page(P).getcelldata(2,3)
datatable.value("link",1)=a
Browser(B).Page(P).link("a")