@Component
public class DebuggingStepDefinitions
extends java.lang.Object
Constructor and Description |
---|
DebuggingStepDefinitions() |
Modifier and Type | Method and Description |
---|---|
void |
deleteAllCookie()
Deletes all cookies
|
void |
deleteCookie(java.lang.String cookieName,
java.lang.String path)
Deletes a cookie with the name and path
|
void |
displayStartingMarker()
When comparing the performance of a page in a recorded video, it is useful to have some kind of
visual indication when the script is started.
|
void |
dumpAliasMap()
Dumps the alias map to the console
|
void |
dumpCookieName(java.lang.String cookieName)
Dumps the value of a cookie to the logger
|
void |
dumpIndividualAlias(java.lang.String alias)
Dumps the value of an alias to the console.
|
void |
takeScreenshotStep(java.lang.String filename)
Manually save a screenshot
|
@When(value="^I take a screenshot(?:(?: called)? \"(.*?)\")?$") public void takeScreenshotStep(java.lang.String filename)
filename
- The optional filename to use for the screenshot@When(value="^I dump the value of the cookie called \"(.*?)\"$") public void dumpCookieName(java.lang.String cookieName)
cookieName
- The name of the cookie to dump@When(value="^I delete cookies called \"(.*?)\"(?: with the path \"(.*?)\")?$") public void deleteCookie(java.lang.String cookieName, java.lang.String path)
cookieName
- The name of the cookie to deletepath
- The optional path of the cookie to delete. If omitted, all cookies with the
cookieName are deleted.@When(value="^I delete all cookies$") public void deleteAllCookie()
@When(value="I dump the alias map to the console$") public void dumpAliasMap()
@When(value="I dump the value of the alias \"(.*?)\" to the console$") public void dumpIndividualAlias(java.lang.String alias)
alias
- The name of the alias@When(value="I display a starting marker$") public void displayStartingMarker()