Add manual test support to e2e test framework
This commit is contained in:
parent
cc01c7657d
commit
f70971c4e2
@ -1,6 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
"bytes"
|
||||
"crypto/rand"
|
||||
"encoding/hex"
|
||||
@ -174,6 +175,13 @@ func main() {
|
||||
5*time.Minute)
|
||||
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
|
||||
seleniumArgs = []string{
|
||||
"-u", // force stdout to be unbuffered
|
||||
|
@ -11,14 +11,15 @@ type Common struct {
|
||||
}
|
||||
|
||||
type Server struct {
|
||||
Skip bool `json:"skip"`
|
||||
Comment string `json:"comment"`
|
||||
Address string `json:"address"`
|
||||
Image string `json:"image"`
|
||||
Username string `json:"username"`
|
||||
Password string `json:"password"`
|
||||
Browsers []string `json:"browsers"`
|
||||
Tests []string `json:"tests"`
|
||||
Skip bool `json:"skip"`
|
||||
Comment string `json:"comment"`
|
||||
Address string `json:"address"`
|
||||
Image string `json:"image"`
|
||||
Username string `json:"username"`
|
||||
Password string `json:"password"`
|
||||
Browsers []string `json:"browsers"`
|
||||
Tests []string `json:"tests"`
|
||||
ManualTests bool `json:"manual_tests"`
|
||||
|
||||
// These properties are set at runtime
|
||||
Docker bool `json:"-"`
|
||||
|
Loading…
x
Reference in New Issue
Block a user