Package co.verisoft.fw.utils
Class CapabilitiesReader
- java.lang.Object
-
- co.verisoft.fw.utils.CapabilitiesReader
-
public class CapabilitiesReader extends Object
Read capabilities file from Json. Source can be found here: https://medium.com/geekculture/how-to-set-up-appium-desired-capabilities-from-a-json-file-91b3e0bb16dc- Since:
- Aug 2021
- Author:
- Rommel Malqued
-
-
Constructor Summary
Constructors Constructor Description CapabilitiesReader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.openqa.selenium.remote.DesiredCapabilities
getDesiredCapabilities(String capabilityName, String capsContentRootLocation)
Main method of class.
-
-
-
Method Detail
-
getDesiredCapabilities
public static org.openqa.selenium.remote.DesiredCapabilities getDesiredCapabilities(String capabilityName, String capsContentRootLocation)
Main method of class. This is the entry point to the class logic. Method takes a capability file and capability name, builds a DesiredCapability object and returns it.- Parameters:
capabilityName
- The name of the capability to loadcapsContentRootLocation
- path to capability- Returns:
- DesiredCapability file
- Throws:
Exception
- Runtime unexpected exception
-
-