Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #173 from vania-pooh/master
Browse files Browse the repository at this point in the history
Renamed testName capability and added docs
  • Loading branch information
aandryashin authored Jul 29, 2017
2 parents f7556d4 + af556ca commit 144c61b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions docs/special-capabilities.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,11 @@ screenResolution: 1280x1024x24
. So far as our containers run headless browsers in Xvfb without installed window manager `maximize` operation does not work. You need to use `setSize` method instead.
====

=== Custom Test Name

For debugging purposes it is often useful to give a distinct name to every test case. When working with Selenoid you can set test case name by passing the following capability:
```
name: myCoolTestName
```
The main application of this capability - is debugging tests in the UI which is showing specified name for every running session.
2 changes: 1 addition & 1 deletion session/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type Caps struct {
Version string `json:"version"`
ScreenResolution string `json:"screenResolution"`
VNC bool `json:"enableVNC"`
TestName string `json:"testName"`
TestName string `json:"name"`
}

// Session - holds session info
Expand Down

0 comments on commit 144c61b

Please sign in to comment.