Class ZestScript

    • Constructor Detail

      • ZestScript

        public ZestScript()
        Instantiates a new zest script.
      • ZestScript

        public ZestScript​(String title,
                          String description,
                          String type)
        Instantiates a new zest script.
        Parameters:
        title - the title
        description - the description
        type - the type
      • ZestScript

        public ZestScript​(String title,
                          String description,
                          ZestScript.Type type)
        Instantiates a new zest script.
        Parameters:
        title - the title
        description - the description
        type - the type
    • Method Detail

      • setType

        public void setType​(ZestScript.Type type)
        Sets the type.
        Parameters:
        type - the new type
      • setType

        public void setType​(String type)
        Sets the type.
        Parameters:
        type - the new type
      • getType

        public String getType()
        Gets the type.
        Returns:
        the type
      • duplicateTo

        public void duplicateTo​(ZestScript script)
        Duplicate to.
        Parameters:
        script - the script
      • add

        public void add​(ZestStatement stmt)
        Adds the statement to the end of the script.
        Parameters:
        stmt - the statement to add
      • add

        public void add​(int index,
                        ZestStatement stmt)
        Adds the statement in the specified index in the script.
        Parameters:
        index - the index at which the statement will be added
        stmt - the statement to add
      • remove

        public void remove​(ZestStatement req)
        Removes the.
        Parameters:
        req - the req
      • removeStatement

        public void removeStatement​(int index)
        Removes the statement.
        Parameters:
        index - the index
      • getTitle

        public String getTitle()
        Gets the title.
        Returns:
        the title
      • setTitle

        public void setTitle​(String title)
        Sets the title.
        Parameters:
        title - the new title
      • getDescription

        public String getDescription()
        Gets the description.
        Returns:
        the description
      • setDescription

        public void setDescription​(String description)
        Sets the description.
        Parameters:
        description - the new description
      • getStatements

        public List<ZestStatement> getStatements()
        Gets the statements.
        Returns:
        the statements
      • setStatements

        public void setStatements​(List<ZestStatement> statements)
        Sets the statements.
        Parameters:
        statements - the new statements
      • addAuthentication

        public void addAuthentication​(ZestAuthentication auth)
        Adds the authentication.
        Parameters:
        auth - the auth
      • removeAuthentication

        public void removeAuthentication​(ZestAuthentication auth)
        Removes the authentication.
        Parameters:
        auth - the auth
      • getAuthentication

        public List<ZestAuthentication> getAuthentication()
        Gets the authentication.
        Returns:
        the authentication
      • setAuthentication

        public void setAuthentication​(List<ZestAuthentication> authentication)
        Sets the authentication.
        Parameters:
        authentication - the new authentication
      • getPrefix

        public String getPrefix()
        Gets the prefix.
        Returns:
        the prefix
      • getParameters

        public ZestVariables getParameters()
        Gets the parameters.
        Returns:
        the parameters
      • setParameters

        public void setParameters​(ZestVariables parameters)
        Sets the parameters.
        Parameters:
        parameters - the new parameters
      • getZestVersion

        public String getZestVersion()
        Gets the zest version.
        Returns:
        the zest version
      • setZestVersion

        public void setZestVersion​(String zestVersion)
        Sets the zest version.
        Parameters:
        zestVersion - the new zest version
      • getGeneratedBy

        public String getGeneratedBy()
        Gets the generated by.
        Returns:
        the generated by
      • setGeneratedBy

        public void setGeneratedBy​(String generatedBy)
        Sets the generated by.
        Parameters:
        generatedBy - the new generated by
      • getAbout

        public String getAbout()
        Gets the about.
        Returns:
        the about
      • setAbout

        public void setAbout​(String about)
        Sets the about.
        Parameters:
        about - the new about
      • getAuthor

        public String getAuthor()
        Gets the author.
        Returns:
        the author
      • setAuthor

        public void setAuthor​(String author)
        Sets the author.
        Parameters:
        author - the new author
      • getVariableNames

        public Set<String> getVariableNames()
        Description copied from interface: ZestContainer
        Returns all of the variable names defined by this staement and its children.
        Specified by:
        getVariableNames in interface ZestContainer
        Returns:
        the tokens
      • getClientWindowHandles

        public Set<String> getClientWindowHandles()
        Returns a set containing all of the window handles defined in this script
        Returns:
        the window handles.
      • isPassive

        public boolean isPassive()
        Description copied from class: ZestStatement
        Checks if is passive.
        Specified by:
        isPassive in class ZestStatement
        Returns:
        true, if is passive