Highlighted
Honored Contributor.
Honored Contributor.
1469 views

WebTable.GetCellData() - takes foever to retrieve data

Ok.

Been doing some tests over this and nothing improves performmance here.

I need to check some objects cotained in a web table (progress bars...)

Here goes:

prog_val = myPage.WebTable("Web_Tbl_Progress_Bar").GetCellData(Iterator1, 2)

They should show 100%. Anyways, this GetCellData takes forever to perform.

Checking 4 rows might take a whopping 20 seconds...

Any other way to do this?

And no, GetRowWithCellText () will not do the job here...

 

Need to go over each progress bar's value.

 

Thank-you.

0 Likes
5 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: WebTable.GetCellData() - takes foever to retrieve data

Hi,

Can you include a snapshot of the AUT?

Also, what is it exactly you need to check?

Thanks,

Tsachi

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Re: WebTable.GetCellData() - takes foever to retrieve data

Hello Tsachi.

 

I need to check the 'innertext' property of these progress bars. They should ALL reach 100%.

Looping over them takes a very long time.

Any ideas?

 

Thanks!

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: WebTable.GetCellData() - takes foever to retrieve data

hi, Iiorde

I think getCellData gets the innertext of a table cell instead of the progress bar. If you want to get 100%, as it's the innertext of the progress bar, you need to get this object first and getROProperty from it.

Thanks.

James

0 Likes
Highlighted
Knowledge Partner
Knowledge Partner

Re: WebTable.GetCellData() - takes foever to retrieve data

I think the clue is in the 20 seconds. The default "Object Synchronization Timeout" is 20 seconds.

Do you have "Smart Identification" enabled, I would also like to see your full code that is interrogating the WebTable.

Mark Smith.

 

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Re: WebTable.GetCellData() - takes foever to retrieve data

Hello James, hello Mark.

Thank-you for the replies.

I never use smart identification. 

The overall elapsed time is 20 seconds. Each "sample" is about 4~5 seconds.

The more objects present, the more time it will take to sample them.

Object Synchronization Timeou..? Nice that you thought about this Mark, but no, I override this option in my code, like this

QTApp.Test.Settings.Run.ObjectSyncTimeOut = 5000  

So this is not the case. I am in "FAST" run mode and still, this specific query, runs a long time.

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.