Batch execution conquered – Tip 1

Hi All,

Have you ever wondered your test case was running fine when executed individually and failing when it was running in a batch of 50 to 100? It would say element not found and you can see that the element is displayed but Appium simply couldn’t find that. The worst part is, it would occur in different places at different times.

I overcame that issue by using driver.getpagesource(). So, before performing an operation on an object, my function would be polling for the object with driver.getpagesource() and wait for the visibility of the object. This works well in batch execution.

Thanks,
Jerald

3 Likes

Hey @jervinjn Did you work on a Web App or a Native app?

Dealing with this issue… a lot. Any pythonic bindings that would work similarly? Currently the driver.get_source() is broken and there is no driver.get_page_source() function that I can find in the Appium api.

Mayuresh,

I work on Android Hybrid App.

Thanks,
Jerald

Craig,
I don’t have any idea on Python. Sorry!

Jerald