fix: step type

This commit is contained in:
debugtalk
2022-09-27 18:18:33 +08:00
parent 6608d1bdec
commit 8b2ee45c45
6 changed files with 10 additions and 6 deletions

1
.gitignore vendored
View File

@@ -27,6 +27,7 @@ logs
reports
*.xml
htmlcov/
screenshots/
# built plugins
debugtalk.bin

View File

@@ -1,6 +1,6 @@
{
"config": {
"name": "通过 feed 卡片进入微信直播间",
"name": "通过 feed 卡片进入抖音直播间",
"ios": [
{
"port": 8700,

View File

@@ -1,5 +1,5 @@
config:
name: 通过 feed 卡片进入微信直播间
name: 通过 feed 卡片进入抖音直播间
ios:
- port: 8700
mjpeg_port: 8800

View File

@@ -9,7 +9,7 @@ import (
func TestIOSDouyinLive(t *testing.T) {
testCase := &hrp.TestCase{
Config: hrp.NewConfig("通过 feed 卡片进入微信直播间").
Config: hrp.NewConfig("通过 feed 卡片进入抖音直播间").
SetIOS(hrp.WithLogOn(true), hrp.WithPort(8700), hrp.WithMjpegPort(8800)),
TestSteps: []hrp.IStep{
hrp.NewStep("启动抖音").

View File

@@ -44,7 +44,10 @@ func TestIOSWeixinLive(t *testing.T) {
}
runner := hrp.NewRunner(t)
sessionRunner, _ := runner.NewSessionRunner(testCase)
sessionRunner, err := runner.NewSessionRunner(testCase)
if err != nil {
t.Fatal(err)
}
if err := sessionRunner.Start(nil); err != nil {
t.Fatal(err)
}

View File

@@ -316,7 +316,7 @@ func (s *StepIOS) Name() string {
}
func (s *StepIOS) Type() StepType {
return stepTypeAndroid
return stepTypeIOS
}
func (s *StepIOS) Struct() *TStep {
@@ -457,7 +457,7 @@ func (s *StepIOSValidation) Name() string {
}
func (s *StepIOSValidation) Type() StepType {
return stepTypeAndroid
return stepTypeIOS
}
func (s *StepIOSValidation) Struct() *TStep {