Posts

Showing posts from May, 2021

A small tip to reduce iOS App automation execution time in Appium

 Everyone knows that XPATH is very time-consuming, specially when used in Appium, some times they take more than 3 seconds to find the locator. If you don't believe me, then take a look at the attached video. Observe the time taken by Xpath vs iOS Predicate and decide yourself. Hence, I started looking for an alternative.  Please note that this TIP is only applicable for iOS. Instead of using XPATH, if you use iOS Predicate, it will save your time a lot. IOS predicates are very easy to use as they also worked on attributes, just like XPATH, just that their syntax is different from XPath For example driver.findElementByXPath( '//XCUIElementTypeTable[@name="table"]' ); //will translate to: driver.findElementByIosNsPredicate( 'type == "XCUIElementTypeTable" AND name == "table"' ); driver.findElementByXPath( '//XCUIElementTypeTable[@name="table" or @label="tableLabel"]' ); //will translate to: driver.findElementB...

API testing checklist

Image
 Well, a checklist can not be treated as a holy grail hence a disclaimer take it as a pinch of salt. I usually  refer to the below checklist when it comes to API testing, of course, this is not an exhaustive list