Class SharedActionApp
SharedAction as keyword to be implemented by test automation Engineer.
Inherited Members
Namespace: AxaFrance.WebEngine.MobileApp
Assembly: AxaFrance.WebEngine.MobileApp.dll
Syntax
public abstract class SharedActionApp : SharedActionBase
Constructors
| Improve this Doc View SourceSharedActionApp()
Constructor with no runtime parameters given. Warning: Parameter Property of the Action must be assigned before running the test.
Declaration
protected SharedActionApp()
SharedActionApp(Variable[])
Constructor with giving runtime parameters (Test Data)
Declaration
protected SharedActionApp(Variable[] _parameters)
Parameters
Type | Name | Description |
---|---|---|
Variable[] | _parameters |
Fields
| Improve this Doc View SourceNativeAppContext
The NativeAppContext const = "NATIVE_APP".
Declaration
protected const string NativeAppContext = "NATIVE_APP"
Field Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceDoAction(AppiumDriver)
Implement DoAction() method to interact with your application (Click the links, Fill forms, Click buttons, ...) This action will be called if you are working on Android or IOS. Please note that if you test targets both Android and IOS, you should implement
Declaration
public abstract void DoAction(AppiumDriver driver)
Parameters
Type | Name | Description |
---|---|---|
OpenQA.Selenium.Appium.AppiumDriver | driver |
DoAction(Object)
Run the implemented test script for the current test action (Keyword) using the Appium driver provited as context.
Declaration
public override void DoAction(object Context)
Parameters
Type | Name | Description |
---|---|---|
System.Object | Context | An AppiumDriver object, which refereces to an connection to the Mobile Application. |
Overrides
| Improve this Doc View SourceDoCheckpoint(AppiumDriver)
This method should be called after calling DoAction() Method in order to check whether the action is correctly running.
Declaration
public abstract bool DoCheckpoint(AppiumDriver driver)
Parameters
Type | Name | Description |
---|---|---|
OpenQA.Selenium.Appium.AppiumDriver | driver |
Returns
Type | Description |
---|---|
System.Boolean | true if the check passed or false if the check failed |
Remarks
if the check cannot be run correctly, an exception will be thrown
DoCheckpoint(Object)
Checkpoint is executed after the test script DoAction to verify if there are blocking errors.
Declaration
public override bool DoCheckpoint(object Context)
Parameters
Type | Name | Description |
---|---|---|
System.Object | Context | The current testing context, AppiumDriver. |
Returns
Type | Description |
---|---|
System.Boolean | A System.Boolean value indicates if there are blocking errors.. |
Overrides
| Improve this Doc View SourceScreenshot()
Declaration
protected void Screenshot()
Screenshot(String)
Provide screen-shot in the report
Declaration
protected override void Screenshot(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Overrides
| Improve this Doc View SourceSwitchContext(String)
For Hybird application, use this method to switch to one of Webview or switch back to NATIVE_APP.
Declaration
public void SwitchContext(string targetContext)
Parameters
Type | Name | Description |
---|---|---|
System.String | targetContext | the prefix of the target context to switch. |