suppose take one row in a row 16 columns is there.in 16
columns 16 numbers is there.but i want to get each 3 column
number.o/p :5 columns get in 16 columns means. so can
anybody write this function? plz send if u know the answer.

Answers were Sorted based on User's Feedback



suppose take one row in a row 16 columns is there.in 16 columns 16 numbers is there.but i want to g..

Answer / rangalnrt

c=B().P().WT().getroproperty("cols")

for i=2 to c-1 step 3

temp = B().P().WT().getcelldata(rownumber , i)

msgbox temp

Next

Is This Answer Correct ?    1 Yes 1 No

suppose take one row in a row 16 columns is there.in 16 columns 16 numbers is there.but i want to g..

Answer / kiran kumar

intCols = Browser.Page.WebTable.GetROProperty("cols")
For i = 3 to intCols
strVal = Browser.Page.WebTable.GetCellData(row,3)
i = i+2
Next

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

How to capture data from images in QTP and produce them in Excel sheet ? please ans...

3 Answers   Sapient,


How can we export test results to an excel sheet in QTP??? Can any one provide sample coding for this?????

6 Answers   TCS,


What are the main features we have to compulsory test by using qtp in an web based application

1 Answers  


How many test scripts are prapare in ur project(HeathCare Insurance).

1 Answers   Virtusa,


What is the difference between CVS and VSS? Are you store QTP SCRIPT In VSS OR CVS? Where you store QTP Script?

1 Answers   Brain Roots, Ordain Solutions,






How did you resolve conflicts present in Object Repository?

0 Answers  


What are the recording modes and executing modes avialble in QTP?

3 Answers   Polaris,


where do you define the objects as regular expression when u are using regular expressions.

4 Answers  


There are two tabs in the application suppose, A and B.On clicking the tab "A" one table grid will open. if u click on tab "B" Another table gride will open. Now can I do some operations on both table grids with a single table grid properties in the object repository? I have added all objects of the first table grid into the object repository Now iam checking enable/disable status of "save button" in the second table grid my code is like this val=javawindow("zseries").javabutton("save").getroproperty ("enabled") when I highlighting the save button in the object repository by keeping open the second tablegrid on the application.It is displaying the popup message"The selected object can not be found in the application" can I use properties of one table grid for both tabs if so how it is possible. Can anyone help me

2 Answers   Livetek,


Hi All, I want to know how can we schedule QTP scripts. Am using 9.5 version and in our office they want to schedule individual scripts of QTP so that it can run unattended during night time, Please help me how to do that. 2. what is the use of silent test run in qtp can I schedule the scripts in Silent runner, Please explain. 3.I retrieved data from the database using output value -> Database output value. the result of the query for eg is 5 rows, iam able to output the first row by selecting the cols and adding it to output, but am not able to do it for the rest of the rows. please tell me how to do it. Sorry for posting so many qns, am not able to find answ to any of the above in any websites, hoping that someone would really help me with these here, please help me. awaiting for ur immediate revert. Priya

5 Answers  


Diff b/n image n bitmap checkpoints?

2 Answers   iGate,


Hi Friends, How to trap an error message on Web page through QTP. Example:- When I put wrong user id or Password on a web page, I get the error message. So when I add the error object in Reposatory, every time it shows as Login Failed Object exist, eventhough using corret login details. And if I do the same without adding the object it shows as object not found. This might be because while recording QTP takes every new page as _1 _2 _3 and so on. as below. Browser("XXXXX").Page("XXXXX_1"). >>login Browser("XXXXX").Page("XXXXX_2"). >>Inbox Browser("XXXXX").Page("XXXXX_3"). >>Sent Items I used below code. Browser("XXXXX").Page("XXXXX").WebEdit("firstname").Set strFN Browser("XXXXX").Page("XXXXX").WebEdit("lastname").Set strLN Browser("XXXXX").Page("XXXXX").WebEdit("userid").Set strUserID Browser("XXXXX").Page("XXXXX").WebEdit("password").Set strPass Browser("XXXXX").Page("XXXXX").WebButton("Login >").Click If Browser("XXXXX").Page("XXXXX_2").Image ("msg_icon_error").Exist 5 Then Reporter.ReportEvent micFail, "XXXXX", "Login Failed!" ExitRun (It shows login failed ever after login is passed. Else Reporter.ReportEvent micPass, "XXXXX", "Login Successful!" End If Please find out a way for me here, and provide me with the correct code. Thanks in Advance.

1 Answers  


Categories