Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

        String TCname = getTestCaseNameWithoutSpecialChars(); 

 15)

getScenarioName() 

    = This method is used to  get the name of scenario  being executed 

...

    for example, if the user wants to get the name of current scenario being executed, he can do it as: 

     

    In earlier versionsQualitia 8.0.0

        String scenarioName = Controller.scenarioNamegetScenarioName()

    In Qualitia 8.0.0earlier versions

        String scenarioName = getScenarioName()Controller.scenarioName

 16)

getSuiteName() 

    = This method is used to  get the name of current suite being executed 

...

    for example, if the user wants to get the name of current suite being executed, he can do it as:      

    In earlier versionsQualitia 8.0.0

        String suiteName = Controller.suiteNamegetSuiteName()

     

    In Qualitia 8.0.0earlier versions

        String suiteName = getSuiteName()Controller.suiteName

 17)

getObjectID() 

    = This method is used to  get current object Id. 

...

    for example, if the user wants to get the ID of current object on the browser where he wants to set some value, he can do it as:      

    In earlier versionsQualitia 8.0.0

        String objectID = Controller.strObjectIDgetObjectID()

     

    In Qualitia 8.0.0earlier versions

        String objectID = getObjectID()Controller.strObjectID

 

 

...

getIterationFolderPath() 

    = This method is used to get the Iteration folder path i.e. where the report related data is stored. 

...

    for example, if the user wants to get the folder path where all the report related data is kept, he can do it as:  

  In Qualitia 8.0.0:  

        String itrFolderPath = getIterationFolderPath();

    In earlier versions:  

        String itrFolderPath = Controller.ITERATION_FOLDER_PATH;  

    In Qualitia 8.0.0:  

        String itrFolderPath = getIterationFolderPath(); 

 

19)

     

getSuitesDir() 

= This method is used to get the suite Directory i.e. the folder path where all the JSON files are present. This is the same as provided in config/startupSettings.json 

 20)

getMobileURL 

=     This method is used to get appium server URL where appium server is hosted.  

    This is an alternative to GLOBALS.appiumServerURL      

    For example, If the user wants to give a messgae regarding connection failure to appium server, he can do this as: 

...

            "it is started before executing the test case."; 

 21)

getCI_Tool() 

=     This method is used to get the value of CI_TOOL which is provided in execution profile. 

...

         private static final CIHandler _CIH = CIFactory.getInstance(getCI_Tool()); 

 22)

getTestCaseCounter() 

= this method is used to get the iteration number of Testcase being executed. 

This is an alternative to Controller.testCaseCounter 

 23)

isDesktopExecution() 

= This method is used to decide if the Execution platform is Desktop or not. It returns true when the executing platform is Desktop and returns false when execution platform is Mobile. 

...

For example: If user wants to do a particular operation when testcase is running on Desktop, he can do it as:   

  

   

  

     In earlier versionsQualitia 8.0.0:   

        if(QualitiaSelenium.isDesktopExecution())   

  

        {   

  

        //Desktop related operation   

  

  

        }   

  

  

     In Qualitia 8.0.0earlier versions:   

        if(QualitiaSelenium.isDesktopExecution())     

        {     

        //Desktop related operation   

  

  

        }   

   24)

getProjectName() 

=     This method is used to get the project name as specified in execution profile. 

    This is an alternative to GLOBALS.CONFIG_PROJECT 

 25) 

getUserName 

=  This method is used to get the user name as specified in execution profile.  

    This is an alternative to GLOBALS.CONFIG_USERNAME  

  26)

getBuildNum 

=  This method is used to get the Build number as specified in execution profile.  

    This is an alternative to GLOBALS.CONFIG_BUILD_NUMBER  NUMBER . 27)

getReleaseNum 

=  This method is used to get the release number as specified in execution profile.  

    This is an alternative to GLOBALS.CONFIG_RELEASE_NUMBER NUMBER. 28) 

getCreateInfoLog() 

= This method is used to get the value of "CreateInfoLog" property as specified in execution profile.   

    If the value is true, then Info Log file is created and and if it is false then the Info Log file is not created. 

     29)

getCreateDebugLog() 

=    This method is used to get the value of "CreateDebugLog" property as specified in execution profile.   

...