Class Zats


  • public class Zats
    extends Object
    The main class to start or stop the default ZatsEnvironment
    Author:
    Hawk, Dennis
    • Constructor Detail

      • Zats

        public Zats()
    • Method Detail

      • init

        public static void init​(String resourceRoot)
        To initialize a test runtime and hold a ZatsEnvironment, the default environment is DefaultZatsEnvironment. It use built-in configuration files(web.xml,zk.xml) for starting quickly and safely.
        Parameters:
        resourceRoot - the resource root folder of the zul, it is usually the web content folder.
      • end

        public static void end()
        to end the test runtime and destroy the held ZatsEnvironment.
      • newClient

        public static Client newClient()
        to create a new client
        Returns:
        a new client
      • cleanup

        public static void cleanup()
        to cleanup the held ZatsEnvironment