Class 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 Detail

      • CapabilitiesReader

        public CapabilitiesReader()
    • 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 load
        capsContentRootLocation - path to capability
        Returns:
        DesiredCapability file
        Throws:
        Exception - Runtime unexpected exception