Show / Hide Table of Contents

Class SharedActionApp

SharedAction as keyword to be implemented by test automation Engineer.

Inheritance
Object
SharedActionBase
SharedActionApp
Inherited Members
SharedActionBase.UpdateTime
SharedActionBase.RequiredParameters
SharedActionBase.ActionReport
SharedActionBase.testCase
SharedActionBase.DoAction(Type, TestCase, Object, List<Variable>, ActionReport, Variable[])
SharedActionBase.DoAction(Type, Object, List<Variable>, ActionReport, Variable[])
SharedActionBase.DoAction(Type, Object, List<Variable>, Variable[])
SharedActionBase.DoActionWithCheckpoint(Type, Object, List<Variable>, ActionReport, Variable[])
SharedActionBase.DoActionWithCheckpoint(Type, Object, List<Variable>, SharedActionBase, Variable[])
SharedActionBase.GetParameter(IEnumerable<Variable>, String)
SharedActionBase.GetParameter(String)
SharedActionBase.Parameters
SharedActionBase.ContextValues
SharedActionBase.Information
SharedActionBase.GetType(String)
SharedActionBase.Global
SharedActionBase.ActionResult
SharedActionBase.Screenshots
Namespace: AxaFrance.WebEngine.MobileApp
Assembly: AxaFrance.WebEngine.MobileApp.dll
Syntax
public abstract class SharedActionApp : SharedActionBase

Constructors

| Edit this page View Source

SharedActionApp()

Constructor with no runtime parameters given. Warning: Parameter Property of the Action must be assigned before running the test.

Declaration
protected SharedActionApp()
| Edit this page View Source

SharedActionApp(Variable[])

Constructor with giving runtime parameters (Test Data)

Declaration
protected SharedActionApp(Variable[] _parameters)
Parameters
Type Name Description
Variable[] _parameters

Fields

| Edit this page View Source

NativeAppContext

The NativeAppContext const = "NATIVE_APP".

Declaration
protected const string NativeAppContext = "NATIVE_APP"
Field Value
Type Description
String

Methods

| Edit this page View Source

DoAction(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
AppiumDriver driver
| Edit this page View Source

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
Object Context

An AppiumDriver object, which refereces to an connection to the Mobile Application.

Overrides
SharedActionBase.DoAction(Object)
| Edit this page View Source

DoCheckpoint(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
AppiumDriver driver
Returns
Type Description
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

| Edit this page View Source

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
Object Context

The current testing context, AppiumDriver.

Returns
Type Description
Boolean

A System.Boolean value indicates if there are blocking errors..

Overrides
SharedActionBase.DoCheckpoint(Object)
| Edit this page View Source

Screenshot()

Declaration
protected void Screenshot()
| Edit this page View Source

Screenshot(String)

Provide screen-shot in the report

Declaration
protected override void Screenshot(string name)
Parameters
Type Name Description
String name
Overrides
SharedActionBase.Screenshot(String)
| Edit this page View Source

SwitchContext(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
String targetContext

the prefix of the target context to switch.

  • Edit this page
  • View Source
In this article
Back to top Copyright ® 2016-2024 AXA France, All rights reserved.