Jump to main content
Create a new context API
About this task
This procedure is followed by a detailed example with code that you can copy and paste
into Studio to form a working custom context API.
Procedure
-
Create new scenarios and feature files that specify new steps.
-
Create a new step class that provides step methods for the new steps.
-
Create a new context API interface.
- It must define the new methods that are being added to the base configuration
API.
-
Create a new context API impl.
- It must implement the new interface. (For example: implements
CalendarContext_Ext)
- It must provide implementations for the new methods.
-
Modify ContextFactory.
- Add a new method that returns the new context API. (For example:
CalendarContext_Ext).
-
Modify ContextFactoryImpl.
- Inject the new context API. (For example:
CalendarContext_Ext).
- Add a new override that returns the new context API. (For example:
CalendarContext_Ext).
-
Modify the RemoteSmokeTestHelperModule class.
- Add code to bind the new context API's interface to its impl.