diff --git a/docs/special-capabilities.adoc b/docs/special-capabilities.adoc index 93abc946..1ec3ee95 100644 --- a/docs/special-capabilities.adoc +++ b/docs/special-capabilities.adoc @@ -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. \ No newline at end of file diff --git a/session/session.go b/session/session.go index aeb9c458..66362fb9 100644 --- a/session/session.go +++ b/session/session.go @@ -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