GeekInterview.com
Answered Questions

QTP script for runtime changing objects

Asked By: Punitha.R | Asked On: Dec 19th, 2007

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...

Answered by: brainwood on: Jan 1st, 2008

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:...

Answered by: ramugogurla on: Dec 22nd, 2007

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")

What is a file system object in QTP

Asked By: vamsi.krishna09 | Asked On: Nov 22nd, 2006

Star Read Best Answer

Editorial / Best Answer

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.

Answered by: chitta10 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",""...

Answered by: brainwood on: Feb 13th, 2008

Question: How do we load a text file from QC?Answer:strFilePath = PathFinder.Locate("[QualityCenter] SubjectFolderNameAttachmentName.txt")   Const ForReading = 1, ForWriting = 2&nb...

Interview Question

 Ask Interview Question?

 

Career Counselling

 Have Career Question?

 Ask Chandra

 Ask Only Career questions.

Follow us: