This repository has been archived by the owner on Jan 14, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 168
Steps
baev edited this page Dec 10, 2014
·
7 revisions
Steps are any actions that constitute a testing scenario. Steps can be used in different testing scenarios. They can: be parametrized, make checks, have nested steps, and create attachments. Each step has a name.
In order to define steps in Java code, you need to annotate the respective methods with @Step annotation. When not specified, the step name is equal to the annotated method name converted to human-readable format. To define an explicit step name:
@Step("Open {0} page.")
public void openPageByAddress(String pageAddress) {
...
}
Step names support the following placeholders:
- {N} where N is a zero-based positive integer that will be replaced by the Nth method argument value (0 corresponds to the first argument, 1 to the second, etc.). See example above.
- {method} will be replaced by the annotated method name e.g. openPageByAddress
- aShot - WebDriver Screenshot utility. Take screenshots, crop, prettify, compare.
- HTML Elements - A Java framework that provides easy-to-use interaction with page elements in webpage tests.
- Properties - A Java library for populating beans with system environment properties in a simple and convenient way.
- Perspective - API and shell to orchestrate multiple clouds.