You can edit the base state from the user interface to specify how Silk4J starts an application under test (AUT) during recording and replay. You can specify the executable location of the AUT, the working directory, the URL and the connection string for a web application, and so on. For example, if you want to execute tests on a production web site, which have already been executed on a staging web site, you can simply change the URL in the base state and the tests are executed against the new web site.
To edit the base state through the user interface:
chromeOptions={"args":["--start-maximized"]}For additional information, see Setting Options and Capabilities for Web-Driver Based Browsers.
Executing the base state starts the application if it is not already running. If the application is already running, Silk4J does not start another instance of the application.
If your test includes multiple application configurations and you are modifying an application or Web page other than the object associated with the base state, you can turn off the base state. This indicates that the base state will not be used for recording or replaying the modifications. Therefore, you must record the steps to launch the application or Web page within your test. For instance, if you want to test a Web page, start Internet Explorer within your test.