Versions Compared

Key

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

...

This method is used to get the value of Internet explorer driver path which is provided in the execution profile.  

The value can be either given by user in the execution profile or if driver is downloaded automatically then it is a default value. 

...

This method is used to get the value of Google Chrome driver path which is provided in the execution profile.  

The value can be either given by user in the execution pofile or if driver is downloaded automatically then it is a default value. 

...

=     This method is used to get the value of Firefox driver path i.e. geckodriver which is provided in the execution profile.  

    The value can be either given by user in the execution profile or if driver is downloaded automatically then it is a default value. 

...

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

     

    In earlier versionsQualitia 8.0.0

        public static String APPIUM_NOT_RUNNING = "Failed to connect to Appium Server at " + 

            GLOBALS.appiumServerURL getMobileURL()+ ". Please verify Appium server host and port and make sure that " + 

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

     

    In Qualitia 8.0.0earlier versions

        public static String APPIUM_NOT_RUNNING = "Failed to connect to Appium Server at " + 

            getMobileURL()GLOBALS.appiumServerURL + ". Please verify Appium server host and port and make sure that " + 

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

     

 

getCI_Tool() 

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

    This is an alternative to GLOBALS.CONFIG_CITOOL 

...

    For example, if a user wants to get an Instance of particular CI Tool, he can do it as:      

    In earlier versionsQualitia 8.0.0

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

              

    In Qualitia 8.0.0earlier versions

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

         

 

getTestCaseCounter() 

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

...

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

    This is an alternative to GLOBALS.CONFIG_PROJECT 

...

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

    This is an alternative to GLOBALS.CONFIG_USERNAME  

...

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

    This is an alternative to GLOBALS.CONFIG_BUILD_NUMBER . 

...

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

    This is an alternative to GLOBALS.CONFIG_RELEASE_NUMBER. 

...

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

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

...

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

    If the value is true, then Debug Log file is created and will be visible in report and if it is false then the Debug Log file is not created. 

     30)

getCreateErrorLog() 

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

    If the value is true, then Error Log file is created and will be visible in report and if it is false then the Error Log file is not created. 

 31)

getShowReportAfterExec() 

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

    If the value is true, then report is opened in a new browser window and if it is false then it is not opened in a browser window. The report is generated and stored in Iteration folder but it is not opened automatically. 

 32)

getKeywordId() 

=     This method is used to  get the ID of current function/action being executed. 

    this is an alternative to Controller.strKeywordID 

 33)

getActionQClass() 

=     This method is used to  get the base class of current function/action being executed. 

    this is an alternative to Controller.strActionQClass 

 34)

getKeywordName() 

=     This method is used to  get the name of current function/action executing. 

    this is an alternative to Controller.strKeywordName 

 35)

isCustomAction() 

=     This method is used to decide if the currently executing action is custom action or qualitia action. 

...

        if(isCustomAction()) 

        {//operation} 

 36)

getCapturePassImage 

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

    If the value is true, then screenshots are captured for steps that have executionResult as PASSED and if it is false then screenshots are not captured for PASSED steps. 

     37)

getCaptureFailImage 

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

    If the value is true, then screenshots are captured for steps that have executionResult as FAILED and if it is false then screenshots are not captured for FAILED steps. 

     38)

getCaptureDefectImage 

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

    If the value is true, then screenshots are captured for steps that have executionResult as DEFECT and if it is false then screenshots are not captured for DEFECT steps. 

 39)

getHeadlessMode() 

= This method is used to get the value of "HeadlessMode" property as specified in the execution profile. If it return true then the browser is opened in headless mode else it is not. 

This is an alternative to GLOBALS.CONFIG_HEADLESSMODE. 

 40)

getFailStepOnBrowserScreenshotFailure 

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

  

    If the value is true, then if screenshots are not captured properly for PASSED steps  then they are changed to FAILED.If it is false then even if screenshots are not captured for PASSED steps, execution continues normally. 

 41)

getQualitiaPropValue(String key) 

= this method is used to get value of any Qualitia property as specified in the execution profile. Here key is the Qualitia property name.  

...

String mobilePaltform = getQualitiaPropValue("MobilePlatform");  
42)

getSelectedWaitMode() 

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

The values can either be "EXPLCIT" or "IMPLICIT". 

...

for example, if a user wants to do a certain task when waitmode is IMPLICIT, he can do it as: 

  

In earlier versionsIn Qualitia 8.0.0

if(QualitiaSelenium.getSelectedWaitMode() == CONSTANTS.WaitMode.IMPLICIT){ 

                // task  

            } 

 

  

In Qualitia 8.0.0earlier versions

if(QualitiaSelenium.getSelectedWaitMode() == CONSTANTS.WaitMode.IMPLICIT){ 

                // task  

            }  

  43)

getIntervalTimeOut() 

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

This is an alternative to QualitiaMobile.IntervalTimeOut   

 44)

shutdownMobileDriverSession() 

= This method is used for mobile driver cleanup process. 

...

For example if a user has performed mobile operations using mobile driver and now wants to stop the driver, he can do itas : 

In earlier versionsQualitia 8.0.0

QualitiaMobile.quitMobileDriver shutdownMobileDriverSession(); 

In Qualitia 8.0.0earlier versions

 shutdownMobileDriverSessionQualitiaMobile.quitMobileDriver(); 

 45)

getSelectFrame() 

= This is an alternative to Controller.EXECUTION_TESTCASES(Controller.testCaseCounter).getSelectFrame() 

 46)

getBrowserName()  

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

The values can be "googleChrome, firefox,iexplorer and safari". 

...

for example, if a user wants to perform certain task on firefox browser, he can do it as: 

   

In earlier versionsQualitia 8.0.0

  if (QualitiaSelenium.getBrowsergetBrowserName().equalsIgnoreCase(CONSTANTS.FIREFOX) 

//task 

}   

In Qualitia 8.0.0earlier versions

  if (getBrowserNameQualitiaSelenium.getBrowser().equalsIgnoreCase(CONSTANTS.FIREFOX) 

//task 

 47)

getParamTypes() 

= this method is used to get the parameter types of an action. 

...

For example, if a user wants to call a method using reflection, he can do it as: 

  

In earlier versionsIn Qualitia 8.0.0

    Method m = class.getMethod(functionName, QualitiaTestCase.paramTypesgetParamTypes());    

In Qualitia 8.0.0earlier versions

    Method m = class.getMethod(functionName, getParamTypes(QualitiaTestCase.paramTypes))

 

getElementHighlighter 

This method is used to get the object of elementHighlighter class. It is used to highlight and unhighlight elements in browser.  

...

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

Values can be BROWSER or DESKTOP. 

...

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

This property is used to specify the mobile on which the testcase should be run. 

...

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

This property is used to specify the mobile browser on which the testcase should be run. 

...

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

If it returns true then OptimizationMode is enabled else it is not.  

...

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

If it returns true then AngularSynchronization is ignored else it is not.  

...

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

If it returns true then ExecutionHighlight is enabled else it is not.  

...

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

Default value is "C:\\Program Files (x86)\\AutoIt3". 

...

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

It returns the folder path where Execution Result i.e. Report regarding particular suite execution is stored. 

...

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

    Value can either be "LOCAL" or "REMOTE". LOCAL means local machine and REMOTE includes SauceLabs,Perfecto, TestObject etc. 

...

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

This is an alternative to GLOBALS.CONFIG_REMOTE_URL.  

...

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

    Values can either be "PerTC" or "PerSuite". If the value is PerTC then all the testcases in the suite are independent from each other. If the value is PerSuite then all the testcases are dependent on each other. 

...

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

    Value can either be "testObject","perfectomobile","perfectoweb","saucemobile","sauceweb". 

...

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

Values can either be IOS or Android. 

...

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

This is the URL where Qualitia Server is hosted. 

...

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

This is the version of Qualitia being used. 

...

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

Value can either be MOBILE or DESKTOP. The value of this property decides on which platform will the web testcase be executed.  

...

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

getBrowserBinaryPath 

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

  

getWindowsAuthentication 

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

getReportPath 

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

This is an alternative to GLOBALS.CONFIG_REPORTPATH 

...

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

This is an alternative to GLOBALS.CONFIG_CUSTOM_PROFILEPATH.  

...

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

This is an alternative to GLOBALS.CONFIG_TOOLNAME.  

...

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

This is an alternative to GLOBALS.CONFIG_EXECUTION_TYPE 

...

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

This is an alternative to GLOBALS.GRID_PLATFORM.   

...