docs: add auto for wcl

This commit is contained in:
debugtalk
2022-11-28 21:32:35 +08:00
committed by 李隆
parent ecdbd3afce
commit 5aeb1960c7
5 changed files with 29 additions and 9 deletions
+12 -2
View File
@@ -2,6 +2,12 @@
package main
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestConvertTimeToSeconds(t *testing.T) {
testData := []struct {
timeStr string
@@ -24,14 +30,18 @@ func TestConvertTimeToSeconds(t *testing.T) {
func TestMainIOS(t *testing.T) {
device := initIOSDevice(uuid)
wc := NewWorldCupLive(device, "", "com.ss.iphone.ugc.Aweme", 30, 10)
bundleID := "com.ss.iphone.ugc.Aweme"
wc := NewWorldCupLive(device, "", bundleID, 30, 10)
wc.EnterLive(bundleID)
wc.Start()
wc.DumpResult()
}
func TestMainAndroid(t *testing.T) {
device := initAndroidDevice(uuid)
wc := NewWorldCupLive(device, "", "com.ss.android.ugc.aweme", 30, 10)
bundleID := "com.ss.android.ugc.aweme"
wc := NewWorldCupLive(device, "", bundleID, 30, 10)
wc.EnterLive(bundleID)
wc.Start()
wc.DumpResult()
}