Geeks Talk

Prepare for your Next Interview




Get Contents and Counting Items in a List Box

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


Go Back   Geeks Talk > Software Testing > Rational Robot

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-16-2007
Expert Member
 
Join Date: Feb 2007
Posts: 1,279
Thanks: 0
Thanked 164 Times in 138 Posts
Geek_Guest is on a distinguished roadGeek_Guest is on a distinguished road
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
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-01-2007
Junior Member
 
Join Date: Jun 2006
Posts: 16
Thanks: 0
Thanked 3 Times in 3 Posts
besober is on a distinguished road
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
Reply With Quote
  #3 (permalink)  
Old 06-03-2007
Junior Member
 
Join Date: Jun 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
zsefvy is on a distinguished road
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
Reply With Quote
  #4 (permalink)  
Old 06-04-2007
Junior Member
 
Join Date: Jun 2006
Posts: 16
Thanks: 0
Thanked 3 Times in 3 Posts
besober is on a distinguished road
Re: Get Contents and Counting Items in a List Box

is this urgent ? I have thought of replying those thread once a week? let em know if this is urgent !!!!
Reply With Quote
  #5 (permalink)  
Old 06-04-2007
Junior Member
 
Join Date: Jun 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
zsefvy is on a distinguished road
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....
Reply With Quote
  #6 (permalink)  
Old 06-04-2007
Junior Member
 
Join Date: Jun 2006
Posts: 16
Thanks: 0
Thanked 3 Times in 3 Posts
besober is on a distinguished road
Re: Get Contents and Counting Items in a List Box

sure !!!! hey, i will reply EOD
Reply With Quote
Reply

  Geeks Talk > Software Testing > Rational Robot


Thread Tools
Display Modes


Similar Threads

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


All times are GMT -4. The time now is 01:52 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved