如何验证应用程序是否已在葫芦中检测?

时间:2014-07-27 17:31:27

标签: android ruby xamarin calabash

我想自动化我计划使用Calabash自动化工具的Xamarin android应用程序。我是这个工具的新手。

我已在我的系统上成功安装了Ruby,Ant和SDK。

运行calabash-android run命令后,我收到以下日志: -

2014-07-25 12:13:42 - Installing: C:/Users/<path to apk>
4150 KB/s (11783001 bytes in 2.772s)
2014-07-25 12:13:50 -   pkg: /data/local/tmp/xxx.apk


Success

2014-07-25 12:13:51 - Starting test server using:

2014-07-25 12:13:51 - "D:\softwares\adt-bundle-windows-x86-20140321\sdk/platform
-tools/adb.exe" -s 3230a28fb94fb09b shell am instrument -e target_package com.xxx.android -e main_activity xxx.app.android.activities.StartActivity -e test_
server_port 7102 -e class sh.calaba.instrumentationbackend.InstrumentationBacken
d com.xxx.android.test/sh.calaba.instrumentationbackend.CalabashInstrumentatio
nTestRunner

2014-07-25 12:13:53 - It looks like your app is no longer running.

It could be because of a crash or because your test script shut it down.

2014-07-25 12:13:54 - Checking if instrumentation backend is ready

2014-07-25 12:13:54 - Is app running? true

2014-07-25 12:13:54 - Instrumentation backend not yet ready

2014-07-25 12:13:57 - Checking if instrumentation backend is ready

2014-07-25 12:13:57 - Is app running? true

2014-07-25 12:13:57 - Instrumentation backend is ready!

2014-07-25 12:13:57 - Checking client-server version match...

2014-07-25 12:13:57 - Action: version - Params:

2014-07-25 12:13:57 - Result:'{"bonusInformation":[],"message":"0.5.0","success"
:true}'

2014-07-25 12:13:57 - Client and server versions match. Proceeding...

我只想确认我的apk是否已经过检测?有没有办法验证?

1 个答案:

答案 0 :(得分:0)

转到.apk路径并运行以下命令,查看您的应用启动与否的天气。

calabash-android console path-to-your-app.apk

此后,irb控制台会话应该开始

start_test_server_in_background

您的应用应该由命令本身启动。