Prepare for your Next Interview
This is a discussion on Get Contents and Counting Items in a List Box within the Rational Robot forums, part of the Software Testing category; I am trying to get contents in a list box. Can someone tell me what to use? SQAGetProperty? or SQAGetPropertyArrayAsString? Also the problem that is hindering me is the property ...
|
|||
|
Get Contents and Counting Items in a List Box
I am trying to get contents in a list box. Can someone tell me what to use? SQAGetProperty? or SQAGetPropertyArrayAsString?
Also the problem that is hindering me is the property parameter. I do not know the keywords for lets say counting the items in a list box (which is ItemCount) and now i trying to figure out what is the word for the Header in a list box... any kind of help is appreciated... Question asked by visitor zsefy |
| Sponsored Links |
|
|||
|
Re: Get Contents and Counting Items in a List Box
To retrieve a property value in string form, use SQAGetPropertyAsString.
call SQAGetPropertyArraySize to get the size of the array , which gives you the number of items SQAGetProperty and property as text or content This would be right choice for you ex: To retrieve a property value in string form, use SQAGetPropertyAsString. If the value of the specified property is stored in an array, you must specify a particular element in the array through an array index — for example: Result=SQAGetProperty("Name=myList","List(0)",value) ho[pe this help. let me know if you need more details |
|
|||
|
Re: Get Contents and Counting Items in a List Box
i cant seem to get the property as text or content
heres my code in a function: im trying to get the column headings for a list view. There after i will get the list view items as well... For i = 1 to iColCount Result = SQAGetProperty(RecogStr, "text", ColHeadings(i)) print Result if result <>SQASuccess then exit function end if SQAConsoleWrite ColHeadings(i) Next gives error 1005 = property not found im using robot 7.0.0.0 thanks |
|
|||
|
Re: Get Contents and Counting Items in a List Box
yeah its kinda urgent! Sorry to take up your time but i cant seem to get the property parameter correct for list views. In addition i am also not sure about the recogn. string parameter....
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Counting objects in a web table | Lokesh M | QTP | 2 | 06-23-2008 03:41 PM |
| Menu Items | Sudhan_Otsuka | QTP | 6 | 11-23-2007 02:19 AM |
| Updating table with group of line items | Lokesh M | SAP R/3 | 0 | 12-10-2006 06:47 AM |
| Can you help me in counting | christia | Brainteasers | 2 | 08-29-2006 03:56 AM |
| Are you good in Counting? | scott | Brainteasers | 1 | 08-14-2006 05:04 AM |