bytedance / Fastbot_iOS

About Fastbot(2.0) is a model-based testing tool for modeling GUI transitions to discover app stability problems
Other
556 stars 112 forks source link

使用命令行运行,duration等参数未生效 #15

Closed CYsuncheng closed 3 years ago

CYsuncheng commented 3 years ago

命令:BUNDLEID=com.xxx duration=30 throttle=300 xcodebuild test -workspace Fastbot-iOS.xcworkspace -scheme FastbotRunner -configuration Release -destination 'platform=iOS,id=00008101-xx' -only-testing:FastbotRunner/FastbotRunner/testFastbot

运行时,duration是30分钟,但是实际运行是5分钟,后来发现,我在xcode里面配置的scheme是5分钟,这个命令行参数未生效

geron-cn commented 3 years ago

参照 readme 中这句话哈:if IDE scheme Env Vars changed , command Env Var would be void

你需要回退下 xcode scheme 的配置, 使得 xcode 使用环境变量的值做实际参数。

CYsuncheng commented 3 years ago

@geron-cn ok,明白了