DEV Community

Cover image for Automation Common Utilities
Nael Marwan
Nael Marwan

Posted on ā€¢ Edited on

6 1

Automation Common Utilities

Utility classes are an efficient way of allowing you to create methods that you often re-use in your code.

Adding utilities to your automation infrastructure based on Appium/Selenium is tough and takes a long time to implement so that Iā€™m sharing some common utility classes in Java.

Utility classes criteria:

  • A Utility class should be final.
  • A Utility class should contain a private constructor.
  • A Utility class should only contain final static fields.
  • A Utility class should only contain static methods.

Notes:
Used open-source libs only.
Please follow the above criteria in creating your customized utility class.

TestNG Retry Listener
Appium Utilities
Appium Capabilities CSV Manager
Selenium Utilities
PDF Utilities
File Reader Utilities

Happy Testing šŸ˜Š

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

šŸ‘‹ Kindness is contagious

Please leave a ā¤ļø or a friendly comment on this post if you found it helpful!

Okay