当前位置: 首页 > news >正文

做外贸网站需要多少钱北京建站公司兴田德润很好

做外贸网站需要多少钱,北京建站公司兴田德润很好,二级域名网站权重,那个网站做代买1 安装node.js 1.1 安装node.js http://nodejs.cn/download/ 1.2、下载后直接点击exe,按照提示一步一步的安装 1.3 安装成功后#xff0c;运行cmd#xff0c;输入node –v#xff0c;如果安装成功#xff0c;会输出如下版本信息 2 eclipse android开发环境搭建 2.1 用eclip…1 安装node.js 1.1 安装node.js http://nodejs.cn/download/ 1.2、下载后直接点击exe,按照提示一步一步的安装 1.3 安装成功后运行cmd输入node –v如果安装成功会输出如下版本信息   2 eclipse android开发环境搭建 2.1 用eclipse开发需要下载jdk、eclipse、adt(android development tools 安卓开发工具包)、sdk(software development kit 软件开发工具包),如果不用真机而用模拟器则还需要下载avd(android virtual device 安卓虚拟设备)。为了方便我直接下载的是adt-bundle-windows。 目录如下:   2.2 设置环境变量 ANDROID_HOME D:\software\sdk ANDROID_SDK_HOME D:\software\sdk PATH %ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools;   在eclipse选择sdk,windows-preferences   2.3 查看连接设备。手机启动开发者模式,用USB连接电脑,运行cmd,到sdk的platform-tools,输入adb devices,如果看到设备号即成功。   3 安装appium 3.1、下载文件  https://bitbucket.org/appium/appium.app/downloads/     3.2 安装点击exe,一步一步按照提示操作直至完成。过程中会提示让你安装.net framework可以安装完appium再安装它,这一点还是蛮好的,软件百度一下就有了。 3.3 设置环境变量,在path添加: D:\software\Appium_windows\Appium\node_modules\.bin; 3.4 运行cmd,输入appium-doctor,出现All Checks were successful即安装成功。   4 联机测试 4.1 手机连接电脑。手机启动开发者模式,用USB连接电脑,运行cmd,到sdk的platform-tools,输入adb devices。   4.2  启动appium。 双击appium快捷键。    点击launch   4.3 启动应用。启动应用有两种方式 一 通过appium。 1)从应用市场下载快钱钱包到本地,双击appium快捷键点击小安卓机器人android settings选择应用。   tips:手机型号查看。比如华为手机,设置-关于手机-型号。其他手机类似。   2)general settings   3)点击launch 手机应用会自动打开         appium日志:   Launching Appium server with command: D:\software\Appium_windows\Appium\node.exe lib\server\main.js --address 127.0.0.1 --port 4723 --app D:\software\adt-bundle-windows\sdk\platform-tools\app_installed\kuaiqianqianbaoapp.apk --app-activity com.bill99.kuaiqian.ui.base.WelcomeActivity --app-pkg com.bill99.kuaiqian --pre-launch --session-override --platform-name Android --platform-version 23 --automation-name Appium --device-name HUAWEI GRA-UL00 --log-no-colorinfo: [debug] Starting Appium in pre-launch modeinfo: Pre-launching appinfo: [debug] Using local app from command line: D:\software\adt-bundle-windows\sdk\platform-tools\app_installed\kuaiqianqianbaoapp.apkinfo: [debug] Creating new appium session cea2d326-6a15-43e9-9482-36cf2e89a73ainfo: Starting android appiuminfo: [debug] Getting Java versioninfo: Java version is: 1.7.0_72info: [debug] Checking whether adb is presentinfo: [debug] Using adb from D:\software\sdk\platform-tools\adb.exeinfo: [debug] Using fast reset? trueinfo: [debug] Preparing device for sessioninfo: [debug] Checking whether app is actually presentinfo: Retrieving deviceinfo: [debug] Trying to find a connected android deviceinfo: [debug] Getting connected devices...info: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe devicesinfo: [debug] 1 device(s) connectedinfo: Found device T7G5T15427004998info: [debug] Setting device id to T7G5T15427004998info: [debug] Waiting for device to be ready and to respond to shell commands (timeout 5)info: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 wait-for-deviceinfo: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 shell echo readyinfo: [debug] Starting logcat captureinfo: [debug] Getting device API levelinfo: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 shell getprop ro.build.version.sdkinfo: [debug] Device is at API Level 21info: Device API level is: 21info: [debug] Extracting strings for language: defaultinfo: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 shell getprop persist.sys.languageinfo: [debug] Current device persist.sys.language: zhinfo: [debug] java -jar D:\software\Appium_windows\Appium\node_modules\appium\node_modules\appium-adb\jars\appium_apk_tools.jar stringsFromApk D:\software\adt-bundle-windows\sdk\platform-tools\app_installed\kuaiqianqianbaoapp.apk C:\Users\xiangnan.qi\AppData\Local\Temp\com.bill99.kuaiqian zhinfo: [debug] Reading strings from converted strings.jsoninfo: [debug] Setting language to defaultinfo: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 push C:\\Users\\xiangnan.qi\\AppData\\Local\\Temp\\com.bill99.kuaiqian\\strings.json /data/local/tmpinfo: [debug] Checking whether aapt is presentinfo: [debug] Using aapt from D:\software\sdk\build-tools\android-4.3\aapt.exeinfo: [debug] Retrieving process from manifest.info: [debug] executing cmd: D:\software\sdk\build-tools\android-4.3\aapt.exe dump xmltree D:\software\adt-bundle-windows\sdk\platform-tools\app_installed\kuaiqianqianbaoapp.apk AndroidManifest.xmlinfo: [debug] Set app process to: com.bill99.kuaiqianinfo: [debug] Not uninstalling app since server not started with --full-resetinfo: [debug] Checking app cert for D:\software\adt-bundle-windows\sdk\platform-tools\app_installed\kuaiqianqianbaoapp.apk.info: [debug] executing cmd: java -jar D:\software\Appium_windows\Appium\node_modules\appium\node_modules\appium-adb\jars\verify.jar D:\software\adt-bundle-windows\sdk\platform-tools\app_installed\kuaiqianqianbaoapp.apkinfo: [debug] App already signed.info: [debug] Zip-aligning D:\software\adt-bundle-windows\sdk\platform-tools\app_installed\kuaiqianqianbaoapp.apkinfo: [debug] Checking whether zipalign is presentinfo: [debug] Using zipalign from D:\software\sdk\tools\zipalign.exeinfo: [debug] Zip-aligning apk.info: [debug] executing cmd: D:\software\sdk\tools\zipalign.exe -f 4 D:\software\adt-bundle-windows\sdk\platform-tools\app_installed\kuaiqianqianbaoapp.apk C:\Users\xiangnan.qi\AppData\Local\Temp\11703-7352-r0a80d\appium.tmpinfo: [debug] MD5 for app is 072b08f27c14683756eafc3418ed3971info: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 shell ls /data/local/tmp/072b08f27c14683756eafc3418ed3971.apkinfo: [debug] Getting install status for com.bill99.kuaiqianinfo: [debug] Getting device API levelinfo: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 shell getprop ro.build.version.sdkinfo: [debug] Device is at API Level 21info: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 shell pm list packages -3 com.bill99.kuaiqianinfo: [debug] App is installedinfo: App is already installed, resetting appinfo: [debug] Running fast reset (stop and clear)info: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 shell am force-stop com.bill99.kuaiqianinfo: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 shell pm clear com.bill99.kuaiqianinfo: [debug] Forwarding system:4724 to device:4724info: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 forward tcp:4724 tcp:4724info: [debug] Pushing appium bootstrap to device...info: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 push D:\\software\\Appium_windows\\Appium\\node_modules\\appium\\build\\android_bootstrap\\AppiumBootstrap.jar /data/local/tmp/info: [debug] Pushing settings apk to device...info: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 install D:\software\Appium_windows\Appium\node_modules\appium\build\settings_apk\settings_apk-debug.apkinfo: [debug] Pushing unlock helper app to device...info: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 install D:\software\Appium_windows\Appium\node_modules\appium\build\unlock_apk\unlock_apk-debug.apkinfo: Starting Appinfo: [debug] Attempting to kill all uiautomator processesinfo: [debug] Getting all processes with uiautomatorinfo: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 shell ps uiautomatorinfo: [debug] No matching processes foundinfo: [debug] Running bootstrapinfo: [debug] spawning: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 shell uiautomator runtest AppiumBootstrap.jar -c io.appium.android.bootstrap.Bootstrap -e pkg com.bill99.kuaiqian -e disableAndroidWatchers falseinfo: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests1info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: streaminfo: [debug] [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.Bootstrap:info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: idUiAutomatorTestRunnerinfo: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: testtestRunServerinfo: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: classio.appium.android.bootstrap.Bootstrapinfo: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current1info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 1info: [debug] [BOOTSTRAP] [debug] Socket opened on port 4724info: [debug] [BOOTSTRAP] [debug] Appium Socket Server Readyinfo: [debug] [BOOTSTRAP] [debug] Loading json...info: [debug] [BOOTSTRAP] [debug] json loading complete.info: [debug] [BOOTSTRAP] [debug] Registered crash watchers.info: [debug] Waking up device if its not aliveinfo: [debug] Pushing command to appium work queue: [wake,{}]info: [debug] [BOOTSTRAP] [debug] Client connectedinfo: [debug] [BOOTSTRAP] [debug] Got data from client: {cmd:action,action:wake,params:{}}info: [debug] [BOOTSTRAP] [debug] Got command of type ACTIONinfo: [debug] [BOOTSTRAP] [debug] Got command action: wakeinfo: [debug] [BOOTSTRAP] [debug] Returning result: {status:0,value:true}info: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 shell dumpsys windowinfo: [debug] Screen already unlocked, continuing.info: [debug] Pushing command to appium work queue: [getDataDir,{}]info: [debug] [BOOTSTRAP] [debug] Got data from client: {cmd:action,action:getDataDir,params:{}}info: [debug] [BOOTSTRAP] [debug] Got command of type ACTIONinfo: [debug] [BOOTSTRAP] [debug] Got command action: getDataDirinfo: [debug] [BOOTSTRAP] [debug] Returning result: {status:0,value:\/data\/local\/tmp}info: [debug] dataDir set to: /data/local/tmpinfo: [debug] Pushing command to appium work queue: [compressedLayoutHierarchy,{compressLayout:false}]info: [debug] [BOOTSTRAP] [debug] Got data from client: {cmd:action,action:compressedLayoutHierarchy,params:{compressLayout:false}}info: [debug] [BOOTSTRAP] [debug] Got command of type ACTIONinfo: [debug] [BOOTSTRAP] [debug] Got command action: compressedLayoutHierarchyinfo: [debug] [BOOTSTRAP] [debug] Returning result: {status:0,value:false}info: [debug] Getting device API levelinfo: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 shell getprop ro.build.version.sdkinfo: [debug] Device is at API Level 21info: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 shell am start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n com.bill99.kuaiqian/com.bill99.kuaiqian.ui.base.WelcomeActivityinfo: [debug] Waiting for pkg com.bill99.kuaiqian and activity com.bill99.kuaiqian.ui.base.WelcomeActivity to be focusedinfo: [debug] Getting focused package and activityinfo: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 shell dumpsys window windowsinfo: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 shell getprop ro.build.version.releaseinfo: [debug] Device is at release version 5.0.1info: [debug] Device launched! Ready for commandsinfo: [debug] Setting command timeout to the default of 60 secsinfo: Welcome to Appium v1.4.16 (REV ae6877eff263066b26328d457bd285c0cc62430d)info: Appium REST http interface listener started on 127.0.0.1:4723info: [debug] Non-default server args: {app:D:\\software\\adt-bundle-windows\\sdk\\platform-tools\\app_installed\\kuaiqianqianbaoapp.apk,address:127.0.0.1,sessionOverride:true,launch:true,logNoColors:true,androidPackage:com.bill99.kuaiqian,androidActivity:com.bill99.kuaiqian.ui.base.WelcomeActivity,deviceName:HUAWEI GRA-UL00,platformName:Android,platformVersion:23,automationName:Appium}info: Console LogLevel: debug   应用默认打开60秒自动退出   注意: 应用如果打不开则需要检查电脑的安装包是否损坏。将app安装到手机上看看能否打开。   二 通过脚本。 1)打开appium。点击luanch   注意: 之前的android settings和general settings的选项都关闭掉。     2)在eclipse新建junit(实现打开应用,从应用首页到理财界面),然后运行。 参考代码只需要更改:app/deviceName/appPackage/appActivity。分别是app路径/设备名称/应用package/应用activity package com.glen.demo;import io.appium.java_client.AppiumDriver;import java.io.File; import java.net.URL;import org.junit.After; import org.junit.Before; import org.junit.Test; import org.openqa.selenium.WebElement; import org.openqa.selenium.remote.DesiredCapabilities;public class KQQBTest {private AppiumDriver driver;Beforepublic void setUp() throws Exception {File app new File(D:\\software\\adt-bundle-windows\\sdk\\platform-tools\\app_installed,kuaiqianqianbaoapp.apk);// 设置自动化相关参数DesiredCapabilities capabilities new DesiredCapabilities();capabilities.setCapability(platformName, Android);      capabilities.setCapability(deviceName, HUAWEI GRA-UL00);// 设置apk路径capabilities.setCapability(app, app.getAbsolutePath());capabilities.setCapability(noSign, true);// 设置app的主包名和主类名capabilities.setCapability(appPackage,com.bill99.kuaiqian);capabilities.setCapability(appActivity, com.bill99.kuaiqian.ui.base.WelcomeActivity);// 初始化driver new AppiumDriver(new URL(http://127.0.0.1:4723/wd/hub),capabilities);Thread.sleep(15*1000);}Testpublic void test() {WebElement licai driver.findElementById(com.bill99.kuaiqian:id/q9);System.out.println(控件文本licai.getText());licai.click();}Afterpublic void tearDown() throws Exception {driver.quit();} }   控制台日志: 手机理财截图:   appium日志: info: -- POST /wd/hub/session {desiredCapabilities:{app:D:\\software\\adt-bundle-windows\\sdk\\platform-tools\\app_installed\\kuaiqianqianbaoapp.apk,deviceName:HUAWEI GRA-UL00,platformName:Android,appActivity:com.bill99.kuaiqian.ui.base.WelcomeActivity,noSign:true,appPackage:com.bill99.kuaiqian}}info: Client User-Agent string: Apache-HttpClient/4.3.4 (java 1.5)info: [debug] Using local app from desired caps: D:\software\adt-bundle-windows\sdk\platform-tools\app_installed\kuaiqianqianbaoapp.apkinfo: [debug] Creating new appium session 80a6ad1b-ed9d-4b75-be4e-31996205002finfo: Starting android appiuminfo: [debug] Getting Java versioninfo: Java version is: 1.7.0_72info: [debug] Checking whether adb is presentinfo: [debug] Using adb from D:\software\sdk\platform-tools\adb.exeinfo: [debug] Using fast reset? trueinfo: [debug] Preparing device for sessioninfo: [debug] Checking whether app is actually presentinfo: Retrieving deviceinfo: [debug] Trying to find a connected android deviceinfo: [debug] Getting connected devices...info: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe devicesinfo: [debug] 1 device(s) connectedinfo: Found device T7G5T15427004998info: [debug] Setting device id to T7G5T15427004998info: [debug] Waiting for device to be ready and to respond to shell commands (timeout 5)info: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 wait-for-deviceinfo: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 shell echo readyinfo: [debug] Starting logcat captureinfo: [debug] Getting device API levelinfo: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 shell getprop ro.build.version.sdkinfo: [debug] Device is at API Level 21info: Device API level is: 21info: [debug] Extracting strings for language: defaultinfo: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 shell getprop persist.sys.languageinfo: [debug] Current device persist.sys.language: zhinfo: [debug] java -jar D:\software\Appium_windows\Appium\node_modules\appium\node_modules\appium-adb\jars\appium_apk_tools.jar stringsFromApk D:\software\adt-bundle-windows\sdk\platform-tools\app_installed\kuaiqianqianbaoapp.apk C:\Users\xiangnan.qi\AppData\Local\Temp\com.bill99.kuaiqian zhinfo: [debug] Reading strings from converted strings.jsoninfo: [debug] Setting language to defaultinfo: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 push C:\\Users\\xiangnan.qi\\AppData\\Local\\Temp\\com.bill99.kuaiqian\\strings.json /data/local/tmpinfo: [debug] Checking whether aapt is presentinfo: [debug] Using aapt from D:\software\sdk\build-tools\android-4.3\aapt.exeinfo: [debug] Retrieving process from manifest.info: [debug] executing cmd: D:\software\sdk\build-tools\android-4.3\aapt.exe dump xmltree D:\software\adt-bundle-windows\sdk\platform-tools\app_installed\kuaiqianqianbaoapp.apk AndroidManifest.xmlinfo: [debug] Set app process to: com.bill99.kuaiqianinfo: [debug] Not uninstalling app since server not started with --full-resetinfo: [debug] noSign capability set to true, skipping checking and signing of appinfo: [debug] MD5 for app is 072b08f27c14683756eafc3418ed3971info: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 shell ls /data/local/tmp/072b08f27c14683756eafc3418ed3971.apkinfo: [debug] Getting install status for com.bill99.kuaiqianinfo: [debug] Getting device API levelinfo: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 shell getprop ro.build.version.sdkinfo: [debug] Device is at API Level 21info: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 shell pm list packages -3 com.bill99.kuaiqianinfo: [debug] App is installedinfo: App is already installed, resetting appinfo: [debug] Running fast reset (stop and clear)info: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 shell am force-stop com.bill99.kuaiqianinfo: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 shell pm clear com.bill99.kuaiqianinfo: [debug] Forwarding system:4724 to device:4724info: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 forward tcp:4724 tcp:4724info: [debug] Pushing appium bootstrap to device...info: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 push D:\\software\\Appium_windows\\Appium\\node_modules\\appium\\build\\android_bootstrap\\AppiumBootstrap.jar /data/local/tmp/info: [debug] Pushing settings apk to device...info: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 install D:\software\Appium_windows\Appium\node_modules\appium\build\settings_apk\settings_apk-debug.apkinfo: [debug] Pushing unlock helper app to device...info: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 install D:\software\Appium_windows\Appium\node_modules\appium\build\unlock_apk\unlock_apk-debug.apkinfo: Starting Appinfo: [debug] Attempting to kill all uiautomator processesinfo: [debug] Getting all processes with uiautomatorinfo: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 shell ps uiautomatorinfo: [debug] No matching processes foundinfo: [debug] Running bootstrapinfo: [debug] spawning: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 shell uiautomator runtest AppiumBootstrap.jar -c io.appium.android.bootstrap.Bootstrap -e pkg com.bill99.kuaiqian -e disableAndroidWatchers falseinfo: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests1info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: streaminfo: [debug] [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.Bootstrap:info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: idUiAutomatorTestRunnerinfo: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: testtestRunServerinfo: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: classio.appium.android.bootstrap.Bootstrapinfo: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current1info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 1info: [debug] [BOOTSTRAP] [debug] Socket opened on port 4724info: [debug] [BOOTSTRAP] [debug] Appium Socket Server Readyinfo: [debug] [BOOTSTRAP] [debug] Loading json...info: [debug] [BOOTSTRAP] [debug] json loading complete.info: [debug] Waking up device if its not aliveinfo: [debug] Pushing command to appium work queue: [wake,{}]info: [debug] [BOOTSTRAP] [debug] Registered crash watchers.info: [debug] [BOOTSTRAP] [debug] Client connectedinfo: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 shell dumpsys windowinfo: [debug] [BOOTSTRAP] [debug] Got data from client: {cmd:action,action:wake,params:{}}info: [debug] [BOOTSTRAP] [debug] Got command of type ACTIONinfo: [debug] [BOOTSTRAP] [debug] Got command action: wakeinfo: [debug] [BOOTSTRAP] [debug] Returning result: {status:0,value:true}info: [debug] Screen already unlocked, continuing.info: [debug] Pushing command to appium work queue: [getDataDir,{}]info: [debug] [BOOTSTRAP] [debug] Got data from client: {cmd:action,action:getDataDir,params:{}}info: [debug] dataDir set to: /data/local/tmpinfo: [debug] Pushing command to appium work queue: [compressedLayoutHierarchy,{compressLayout:false}]info: [debug] [BOOTSTRAP] [debug] Got command of type ACTIONinfo: [debug] [BOOTSTRAP] [debug] Got command action: getDataDirinfo: [debug] [BOOTSTRAP] [debug] Returning result: {status:0,value:\/data\/local\/tmp}info: [debug] [BOOTSTRAP] [debug] Got data from client: {cmd:action,action:compressedLayoutHierarchy,params:{compressLayout:false}}info: [debug] [BOOTSTRAP] [debug] Got command of type ACTIONinfo: [debug] [BOOTSTRAP] [debug] Got command action: compressedLayoutHierarchyinfo: [debug] Getting device API levelinfo: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 shell getprop ro.build.version.sdkinfo: [debug] [BOOTSTRAP] [debug] Returning result: {status:0,value:false}info: [debug] Device is at API Level 21info: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 shell am start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n com.bill99.kuaiqian/com.bill99.kuaiqian.ui.base.WelcomeActivityinfo: [debug] Waiting for pkg com.bill99.kuaiqian and activity com.bill99.kuaiqian.ui.base.WelcomeActivity to be focusedinfo: [debug] Getting focused package and activityinfo: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 shell dumpsys window windowsinfo: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 shell getprop ro.build.version.releaseinfo: [debug] Device is at release version 5.0.1info: [debug] Device launched! Ready for commandsinfo: [debug] Setting command timeout to the default of 60 secsinfo: [debug] Appium session started with sessionId 80a6ad1b-ed9d-4b75-be4e-31996205002finfo: -- POST /wd/hub/session 303 15604.592 ms - 74 info: -- GET /wd/hub/session/80a6ad1b-ed9d-4b75-be4e-31996205002f {}info: [debug] Responding to client with success: {status:0,value:{platform:LINUX,browserName:Android,platformVersion:5.0.1,webStorageEnabled:false,takesScreenshot:true,javascriptEnabled:true,databaseEnabled:false,networkConnectionEnabled:true,locationContextEnabled:false,warnings:{},desired:{app:D:\\software\\adt-bundle-windows\\sdk\\platform-tools\\app_installed\\kuaiqianqianbaoapp.apk,deviceName:HUAWEI GRA-UL00,platformName:Android,appActivity:com.bill99.kuaiqian.ui.base.WelcomeActivity,noSign:true,appPackage:com.bill99.kuaiqian},app:D:\\software\\adt-bundle-windows\\sdk\\platform-tools\\app_installed\\kuaiqianqianbaoapp.apk,deviceName:T7G5T15427004998,platformName:Android,appActivity:com.bill99.kuaiqian.ui.base.WelcomeActivity,noSign:true,appPackage:com.bill99.kuaiqian},sessionId:80a6ad1b-ed9d-4b75-be4e-31996205002f}info: -- GET /wd/hub/session/80a6ad1b-ed9d-4b75-be4e-31996205002f 200 2.362 ms - 862 {status:0,value:{platform:LINUX,browserName:Android,platformVersion:5.0.1,webStorageEnabled:false,takesScreenshot:true,javascriptEnabled:true,databaseEnabled:false,networkConnectionEnabled:true,locationContextEnabled:false,warnings:{},desired:{app:D:\\software\\adt-bundle-windows\\sdk\\platform-tools\\app_installed\\kuaiqianqianbaoapp.apk,deviceName:HUAWEI GRA-UL00,platformName:Android,appActivity:com.bill99.kuaiqian.ui.base.WelcomeActivity,noSign:true,appPackage:com.bill99.kuaiqian},app:D:\\software\\adt-bundle-windows\\sdk\\platform-tools\\app_installed\\kuaiqianqianbaoapp.apk,deviceName:T7G5T15427004998,platformName:Android,appActivity:com.bill99.kuaiqian.ui.base.WelcomeActivity,noSign:true,appPackage:com.bill99.kuaiqian},sessionId:80a6ad1b-ed9d-4b75-be4e-31996205002f}info: -- POST /wd/hub/session/80a6ad1b-ed9d-4b75-be4e-31996205002f/element {using:id,value:com.bill99.kuaiqian:id/q9}info: [debug] Waiting up to 0ms for conditioninfo: [debug] Pushing command to appium work queue: [find,{strategy:id,selector:com.bill99.kuaiqian:id/q9,context:,multiple:false}]info: [debug] [BOOTSTRAP] [debug] Got data from client: {cmd:action,action:find,params:{strategy:id,selector:com.bill99.kuaiqian:id/q9,context:,multiple:false}}info: [debug] [BOOTSTRAP] [debug] Got command of type ACTIONinfo: [debug] [BOOTSTRAP] [debug] Got command action: findinfo: [debug] [BOOTSTRAP] [debug] Finding com.bill99.kuaiqian:id/q9 using ID with the contextId: multiple: falseinfo: [debug] [BOOTSTRAP] [debug] Using: UiSelector[INSTANCE0, RESOURCE_IDcom.bill99.kuaiqian:id/q9]info: [debug] [BOOTSTRAP] [debug] Returning result: {status:0,value:{ELEMENT:1}}info: [debug] Responding to client with success: {status:0,value:{ELEMENT:1},sessionId:80a6ad1b-ed9d-4b75-be4e-31996205002f}info: -- POST /wd/hub/session/80a6ad1b-ed9d-4b75-be4e-31996205002f/element 200 585.720 ms - 87 {status:0,value:{ELEMENT:1},sessionId:80a6ad1b-ed9d-4b75-be4e-31996205002f}info: -- GET /wd/hub/session/80a6ad1b-ed9d-4b75-be4e-31996205002f/element/1/text {}info: [debug] Pushing command to appium work queue: [element:getText,{elementId:1}]info: [debug] [BOOTSTRAP] [debug] Got data from client: {cmd:action,action:element:getText,params:{elementId:1}}info: [debug] [BOOTSTRAP] [debug] Got command of type ACTIONinfo: [debug] [BOOTSTRAP] [debug] Got command action: getTextinfo: [debug] [BOOTSTRAP] [debug] Returning result: {status:0,value:鐞嗚储}info: [debug] Responding to client with success: {status:0,value:鐞嗚储,sessionId:80a6ad1b-ed9d-4b75-be4e-31996205002f}info: -- GET /wd/hub/session/80a6ad1b-ed9d-4b75-be4e-31996205002f/element/1/text 200 193.723 ms - 80 {status:0,value:鐞嗚储,sessionId:80a6ad1b-ed9d-4b75-be4e-31996205002f}info: -- POST /wd/hub/session/80a6ad1b-ed9d-4b75-be4e-31996205002f/element/1/click {id:1}info: [debug] Pushing command to appium work queue: [element:click,{elementId:1}]info: [debug] [BOOTSTRAP] [debug] Got data from client: {cmd:action,action:element:click,params:{elementId:1}}info: [debug] [BOOTSTRAP] [debug] Got command of type ACTIONinfo: [debug] [BOOTSTRAP] [debug] Got command action: clickinfo: [debug] [BOOTSTRAP] [debug] Returning result: {status:0,value:true}info: [debug] Responding to client with success: {status:0,value:true,sessionId:80a6ad1b-ed9d-4b75-be4e-31996205002f}info: -- POST /wd/hub/session/80a6ad1b-ed9d-4b75-be4e-31996205002f/element/1/click 200 3808.115 ms - 76 {status:0,value:true,sessionId:80a6ad1b-ed9d-4b75-be4e-31996205002f}info: -- DELETE /wd/hub/session/80a6ad1b-ed9d-4b75-be4e-31996205002f {}info: Shutting down appium sessioninfo: [debug] Pressing the HOME buttoninfo: [debug] executing cmd: D:\software\sdk\platform-tools\adb.exe -s T7G5T15427004998 shell input keyevent 3info: [debug] Stopping logcat captureinfo: [debug] Logcat terminated with code null, signal SIGTERMinfo: [debug] Sent shutdown command, waiting for UiAutomator to stop...info: [debug] [BOOTSTRAP] [debug] Got data from client: {cmd:shutdown}info: [debug] [BOOTSTRAP] [debug] Got command of type SHUTDOWNinfo: [debug] [BOOTSTRAP] [debug] Returning result: {status:0,value:OK, shutting down}info: [debug] [UIAUTOMATOR STDOUT] [CDS]close[4724]info: [debug] [UIAUTOMATOR STDOUT] close [socket][/0.0.0.0:4724]info: [debug] [BOOTSTRAP] [debug] Closed client connectioninfo: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests1info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream.info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: idUiAutomatorTestRunnerinfo: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: testtestRunServerinfo: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: classio.appium.android.bootstrap.Bootstrapinfo: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current1info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 0info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: streaminfo: [debug] [UIAUTOMATOR STDOUT] Test results for WatcherResultPrinter.info: [debug] [UIAUTOMATOR STDOUT] Time: 23.808info: [debug] [UIAUTOMATOR STDOUT] OK (1 test)info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: -1info: [debug] UiAutomator shut down normallyinfo: [debug] Cleaning up android objectsinfo: [debug] Cleaning up appium sessioninfo: [debug] Responding to client with success: {status:0,value:null,sessionId:80a6ad1b-ed9d-4b75-be4e-31996205002f}info: -- DELETE /wd/hub/session/80a6ad1b-ed9d-4b75-be4e-31996205002f 200 1154.180 ms - 76 {status:0,value:null,sessionId:80a6ad1b-ed9d-4b75-be4e-31996205002f}   tips:获取appPackage和appActivity。最直接的方法就是用appium.     或者运行cmd,到sdk的build-tools目录下,输入aapt d badging D:\software\adt-bundle-windows\sdk\platform-tools\app_installed\kuaiqianqianbaoapp.apk|findstr package launchable-activity    参考: 安装环境参考:http://www.cnblogs.com/puresoul/p/4696638.html转载于:https://www.cnblogs.com/applemoon/p/6245824.html
http://www.pierceye.com/news/425407/

相关文章:

  • 南京网站制作学校南京有名的网站建设公司
  • wordpress 代码页面宁波专业优化网站制作公司
  • 中国建设行业网站第五届中国国际进口博览会召开时间
  • 做网站设计的有些什么职位wordpress h1 h2 h3
  • 广告公司寮步网站建设哪家好怎么样在百度上推广自己的产品
  • 做亚马逊和淘宝网站公司网站建设深圳
  • 济宁建设网站网站改版 合同
  • wordpress 网站费用北京网站建设 知乎
  • 网站设计师绩效网站页面那个图怎么做
  • 帮别人起名 做ppt的网站做一个网站需要服务器吗
  • 高端网站建设公司兴田德润可以不新产品推广策划方案
  • 建设银行如何网站设置密码嵊州市建设银行网站
  • 陕西 网站建设福州mip网站建设
  • 让人做网站 需要准备什么网站建设国内外现状
  • 滨海做网站公司网页设计模板 中文
  • 辽源市网站建设怎么学做电商
  • 做pc端网站行情网站标签化
  • 中国做的很好的食品网站php图片网站源码
  • 做自媒体小视屏哪个网站好邹平网站建设公司
  • 字体样式 网站layui 网站建设模板
  • 沈阳网站设计江苏城乡建设部网站首页
  • 网站手机端生成wordpress如何下载
  • 网站数据抓取怎么做营销型网站开发定制
  • 福州营销型网站建设中国建设工程信息网站
  • 怎么在服务器里面做网站公司网站模板怎么做
  • 网站建设制作设计营销公司杭州石家庄网络公司哪家好
  • 重庆网站制作特点优势互联免费主机
  • 义乌网站制作多少钱wordpress有访客记录
  • 网站改版建议策划书百度搜索名字排名优化
  • 做药的常用网站wordpress加载js代码