您的位置:首页 > 移动开发

手机自动化测试:Appium代码之Logger1

2015-12-11 15:08 337 查看

手机自动化测试:Appium代码之Logger

poptest是国内唯一一家培养测试开发工程师的培训机构,以学员能胜任自动化测试,性能测试,测试工具开发等工作为目标。poptest推出手机自动化测试的课程,讲解appuim的实际应用,培训全程用商业项目, 大家可以加qq群进行交流:195983133

log形式

首先我们来看一段log输出:info: Starting Appinfo: [debug] Attempting to kill all 'uiautomator' processesinfo: [debug] Getting all processes with 'uiautomator'info: [debug] executing cmd: /Users/wuxian/Documents/tools/sdk/platform-tools/adb -s emulator-5554 shell "ps 'uiautomator'"info: [debug] No matching processes foundinfo: [debug] Running bootstrapinfo: [debug] spawning: /Users/wuxian/Documents/tools/sdk/platform-tools/adb -s emulator-5554 shell uiautomator runtest AppiumBootstrap.jar -c io.appium.android.bootstrap.Bootstrap -e pkg com.example.android.apis -e disableAndroidWatchers falseinfo: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=info: [debug] [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.Bootstrap:info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunnerinfo: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServerinfo: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class="io".appium.android.bootstrap.Bootstrapinfo: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 1info: [debug] [BOOTSTRAP] [debug] Socket opened on port 4724info: [debug] [BOOTSTRAP] [debug] Appium Socket Server Ready我将上面的log分为4种(message为消息体)
1. log等级:message
2. log等级:[debug] message
3. log等级:[debug] [BOOTSTRAP] [debug] message
4. log等级:[debug] [UIAUTOMATOR STDOUT] message
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  软件测试开发