mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-07 07:21:23 +08:00
fix: step type
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -27,6 +27,7 @@ logs
|
|||||||
reports
|
reports
|
||||||
*.xml
|
*.xml
|
||||||
htmlcov/
|
htmlcov/
|
||||||
|
screenshots/
|
||||||
|
|
||||||
# built plugins
|
# built plugins
|
||||||
debugtalk.bin
|
debugtalk.bin
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"config": {
|
"config": {
|
||||||
"name": "通过 feed 卡片进入微信直播间",
|
"name": "通过 feed 卡片进入抖音直播间",
|
||||||
"ios": [
|
"ios": [
|
||||||
{
|
{
|
||||||
"port": 8700,
|
"port": 8700,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
config:
|
config:
|
||||||
name: 通过 feed 卡片进入微信直播间
|
name: 通过 feed 卡片进入抖音直播间
|
||||||
ios:
|
ios:
|
||||||
- port: 8700
|
- port: 8700
|
||||||
mjpeg_port: 8800
|
mjpeg_port: 8800
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
func TestIOSDouyinLive(t *testing.T) {
|
func TestIOSDouyinLive(t *testing.T) {
|
||||||
testCase := &hrp.TestCase{
|
testCase := &hrp.TestCase{
|
||||||
Config: hrp.NewConfig("通过 feed 卡片进入微信直播间").
|
Config: hrp.NewConfig("通过 feed 卡片进入抖音直播间").
|
||||||
SetIOS(hrp.WithLogOn(true), hrp.WithPort(8700), hrp.WithMjpegPort(8800)),
|
SetIOS(hrp.WithLogOn(true), hrp.WithPort(8700), hrp.WithMjpegPort(8800)),
|
||||||
TestSteps: []hrp.IStep{
|
TestSteps: []hrp.IStep{
|
||||||
hrp.NewStep("启动抖音").
|
hrp.NewStep("启动抖音").
|
||||||
|
|||||||
@@ -44,7 +44,10 @@ func TestIOSWeixinLive(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
runner := hrp.NewRunner(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 {
|
if err := sessionRunner.Start(nil); err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -316,7 +316,7 @@ func (s *StepIOS) Name() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *StepIOS) Type() StepType {
|
func (s *StepIOS) Type() StepType {
|
||||||
return stepTypeAndroid
|
return stepTypeIOS
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *StepIOS) Struct() *TStep {
|
func (s *StepIOS) Struct() *TStep {
|
||||||
@@ -457,7 +457,7 @@ func (s *StepIOSValidation) Name() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *StepIOSValidation) Type() StepType {
|
func (s *StepIOSValidation) Type() StepType {
|
||||||
return stepTypeAndroid
|
return stepTypeIOS
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *StepIOSValidation) Struct() *TStep {
|
func (s *StepIOSValidation) Struct() *TStep {
|
||||||
|
|||||||
Reference in New Issue
Block a user