0
我有一個beanshell的問題。我想創建一個BeanShell腳本,允許我自動化一個Robotium測試。使用Robotium與BeanShell一起推出的Android測試
我有一個shell腳本,它的工作原理,讓我做我想做的事情,但我正在尋找的BeanShell相當於:
#!/bin/bash
echo "on lance l'AVD"
emulator -avd test &
echo "wait the end of launch"
sleep 15
echo "Installation of the application under test"
adb install -r /home/marie/workspace/AndroidCalculator/bin/AndroidCalculator.apk
echo "Installation of the test application"
adb install -r /home/marie/workspace/TestProject/bin/TestProject.apk
echo "Launch of test"
adb shell am instrument -w com.calculator.test/com.neenbedankt.android.test.InstrumentationTestRunner
echo "Saving file results"
adb pull data/data/com.calculator/files/TEST-all.xml ./resultats.xml
echo "killing the AVD"
adb emu kill
如何通過BeanShell的,我可以運行該腳本預先製作,或者通過其他任何方式獲得同等結果時,您可以向我建議。
我找了3天的回答,我沒有什麼定論
預先感謝您的幫助。