MCPcopy Create free account
hub / github.com/tebeka/selenium / testStatus

Function testStatus

remote_test.go:580–596  ·  view source on GitHub ↗
(t *testing.T, c config)

Source from the content-addressed store, hash-verified

578}
579
580func testStatus(t *testing.T, c config) {
581 wd := newRemote(t, c)
582 defer quitRemote(t, wd)
583
584 status, err := wd.Status()
585 if err != nil {
586 t.Fatalf("wd.Status() returned error: %v", err)
587 }
588
589 if c.sauce == nil {
590 if len(status.OS.Name) == 0 && status.Message == "" {
591 t.Fatalf("OS.Name or Message not provided: %+v", status)
592 }
593 } else if status.Build.Version != "Sauce Labs" {
594 t.Fatalf("status.Build.Version = %q, expected 'Sauce Labs'", status.Build.Version)
595 }
596}
597
598func testNewSession(t *testing.T, c config) {
599 // Bypass NewRemote which itself calls NewSession internally.

Callers

nothing calls this directly

Calls 3

newRemoteFunction · 0.85
quitRemoteFunction · 0.85
StatusMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…