可以用指令先只执行模型图,确定模型图通过后再开始自动化测试
没有 java 服务端的
关于用例爆炸的问题,目前我们是在单体测试完成后做 MBT 测试,对单个控件就不会再测特殊输入或操作,然后再对大功能模块进行拆分,对复杂的小功能模块进行封装,尽量控制用例数量
其它问题我就回答不了了,我也才接触 MBT 半年,只用到了一点皮毛
这个好专业
是的
#6 楼 @shixue33 uuid 是 iOS 的,iOS 之前看到个方法获得设备 uuid,找不到链接了,大概方法如下:
import commands
uuid = commands.getoutput('idevice_id -l')
wd = webdriver.Remote(
command_executor='http://127.0.0.1:4723/wd/hub',
desired_capabilities ={
'platformName' : 'iOS',
'platformVersion' :' 9.3 ',
'deviceName' : 'iPhone 5s',
'app':'xxxxxxxxxx',
'udid': uuid
})
用 python 写一下,思路和 lucasluo 一样:
for a in range(0, 21):
for b in range(0, 34):
for c in range(0, 100):
if(a * 5 + b * 3 + c / 3.0 == 100 and a + b + c == 100):
print a, b, c
结果:
0 25 75
4 18 78
8 11 81
12 4 84
@fengytn
终端输入:
sudo chmod -R 777 /var/db/lockdown/
17 分钟的视频 4 个 G,合适吗?
1.5.3
@vigossjjj iPhone 5s 真机
/Users/NeverMore/.rvm/gems/ruby-2.3.0/gems/smart_monkey-0.5.0/lib/smart_monkey/monkey_doctor.rb:7: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
INSTRUMENTS_TRACE_PATH : /Users/NeverMore/Desktop/*.trace
RESULT_BASE_PATH : /Users/NeverMore/Desktop/monkey_result
{:app_path=>"com.tkdb.fastLemon", :device=>"1840cbec4c65506576cec375f0bd0cbea4ae767e", :result_base_dir=>"/Users/NeverMore/Desktop/monkey_result", :run_count=>1, :time_limit_sec=>nil, :detail_event_count=>50}
=================================== Start Test (1/1) =======================================
2016-09-03 10:19:25.889 instruments[7858:369474] WebKit Threading Violation - initial use of WebKit from a secondary thread.
2016-09-03 10:21:10.414 instruments[7889:371012] WebKit Threading Violation - initial use of WebKit from a secondary thread.
Attempting iOS device system log capture via deviceconsole.
2016-09-03 10:21:11.980 instruments[7895:371062] WebKit Threading Violation - initial use of WebKit from a secondary thread.
BundleID was found: com.tkdb.fastLemon
Run: ["instruments", "-w", "1840cbec4c65506576cec375f0bd0cbea4ae767e", "-t", "/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate\n/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate", "com.tkdb.fastLemon", "-e", "UIASCRIPT", "/Users/NeverMore/Desktop/monkey_result/report_20160903101923/custom.js", "-e", "UIARESULTSPATH", "/Users/NeverMore/Desktop/monkey_result/report_20160903101923"]
Instruments Usage Error: The specified template '/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate
/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate' does not exist.
instruments, version 7.3 (60134)
usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument ...]]]
Stop iOS system log capture.
2016-09-03 10:21:34.460 instruments[7929:371628] WebKit Threading Violation - initial use of WebKit from a secondary thread.
报错的:Instruments Usage Error: The specified template '/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate
/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate' does not exist.
这两个文件都有啊,求大神解答