mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-09 06:23:52 +08:00
docs: enter WC live
This commit is contained in:
@@ -1,11 +1,7 @@
|
||||
//go:build localtest
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestConvertTimeToSeconds(t *testing.T) {
|
||||
testData := []struct {
|
||||
timeStr string
|
||||
@@ -26,6 +22,16 @@ func TestConvertTimeToSeconds(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestMain(t *testing.T) {
|
||||
main()
|
||||
func TestMainIOS(t *testing.T) {
|
||||
device := initIOSDevice()
|
||||
wc := NewWorldCupLive(device, "", "com.ss.iphone.ugc.Aweme", 30, 10)
|
||||
wc.Start()
|
||||
wc.DumpResult()
|
||||
}
|
||||
|
||||
func TestMainAndroid(t *testing.T) {
|
||||
device := initAndroidDevice()
|
||||
wc := NewWorldCupLive(device, "", "com.ss.android.ugc.aweme", 30, 10)
|
||||
wc.Start()
|
||||
wc.DumpResult()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user