Add manual test support to e2e test framework
This commit is contained in:
parent
cc01c7657d
commit
f70971c4e2
@ -1,6 +1,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"bufio"
|
||||||
"bytes"
|
"bytes"
|
||||||
"crypto/rand"
|
"crypto/rand"
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
@ -174,6 +175,13 @@ func main() {
|
|||||||
5*time.Minute)
|
5*time.Minute)
|
||||||
fmt.Print("\033[39;0m") // reset terminal text color
|
fmt.Print("\033[39;0m") // reset terminal text color
|
||||||
|
|
||||||
|
// Pause for any manual tests
|
||||||
|
if server.ManualTests {
|
||||||
|
fmt.Println(" [!] Pausing for manual tests")
|
||||||
|
reader := bufio.NewReader(os.Stdin)
|
||||||
|
reader.ReadString('\n')
|
||||||
|
}
|
||||||
|
|
||||||
// Setup base Selenium arguments
|
// Setup base Selenium arguments
|
||||||
seleniumArgs = []string{
|
seleniumArgs = []string{
|
||||||
"-u", // force stdout to be unbuffered
|
"-u", // force stdout to be unbuffered
|
||||||
|
@ -19,6 +19,7 @@ type Server struct {
|
|||||||
Password string `json:"password"`
|
Password string `json:"password"`
|
||||||
Browsers []string `json:"browsers"`
|
Browsers []string `json:"browsers"`
|
||||||
Tests []string `json:"tests"`
|
Tests []string `json:"tests"`
|
||||||
|
ManualTests bool `json:"manual_tests"`
|
||||||
|
|
||||||
// These properties are set at runtime
|
// These properties are set at runtime
|
||||||
Docker bool `json:"-"`
|
Docker bool `json:"-"`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user