如何使用 Perl 脚本使用 Eclipse Epic 测试 Android 应用程序?

发布于 2024-12-17 22:40:03 字数 79 浏览 2 评论 0原文

我正在为 Android 应用程序进行 Perl 测试。如何使用 Perl 脚本使用 Eclipse Epic 测试 Android 应用程序?

I am working on Perl testing for an Android application. How to use Perl script for testing Android application using Eclipse Epic?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

天涯离梦残月幽梦 2024-12-24 22:40:03

我的解决方案:

#use strict;
#use warnings;

system("adb shell am start -a com.android.intent.action.MAIN -n com.android.mms/.ui.ConversationList");

sleep(0);

system("adb shell am start -a com.android.intent.action.MAIN -n com.android.mms/.ui.ComposeMessageActivity");

system("adb shell input text 'Anji'");

sleep(2);

system("adb shell input keyevent 20");

sleep(2);

system("adb shell input text '9491407690'");

sleep(4);

system("adb shell input keyevent 21");

sleep(2);

system("adb shell input keyevent 66");

system("adb shell input keyevent 20");

system("adb shell input keyevent 20");

sleep(2);

system("adb shell input keyevent 66");

sleep(2);

system("adb shell input keyevent 19");

sleep(0);

system("adb shell input keyevent 66");

sleep(0);

system("adb shell input keyevent 5");

sleep(0);

system("adb shell input keyevent 4");

sleep(0);

system("adb shell input text 'callsuccess'");

sleep(4);

system("adb shell input keyevent 21");

system("adb shell input keyevent 66");

sleep(0);

system("adb shell input keyevent 19");

system("adb shell input keyevent 4");

system("adb shell input keyevent 4");

system("adb shell input keyevent 66");


system("adb shell am start -a com.android.intent.action.MAIN -n com.android.launcher/.Launcher");

My solution:

#use strict;
#use warnings;

system("adb shell am start -a com.android.intent.action.MAIN -n com.android.mms/.ui.ConversationList");

sleep(0);

system("adb shell am start -a com.android.intent.action.MAIN -n com.android.mms/.ui.ComposeMessageActivity");

system("adb shell input text 'Anji'");

sleep(2);

system("adb shell input keyevent 20");

sleep(2);

system("adb shell input text '9491407690'");

sleep(4);

system("adb shell input keyevent 21");

sleep(2);

system("adb shell input keyevent 66");

system("adb shell input keyevent 20");

system("adb shell input keyevent 20");

sleep(2);

system("adb shell input keyevent 66");

sleep(2);

system("adb shell input keyevent 19");

sleep(0);

system("adb shell input keyevent 66");

sleep(0);

system("adb shell input keyevent 5");

sleep(0);

system("adb shell input keyevent 4");

sleep(0);

system("adb shell input text 'callsuccess'");

sleep(4);

system("adb shell input keyevent 21");

system("adb shell input keyevent 66");

sleep(0);

system("adb shell input keyevent 19");

system("adb shell input keyevent 4");

system("adb shell input keyevent 4");

system("adb shell input keyevent 66");


system("adb shell am start -a com.android.intent.action.MAIN -n com.android.launcher/.Launcher");
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文