want to keep the app in the foreground while executing feature files using CucumberAndroidJUnitRunner

I want to keep the app in the foreground while executing feature files using CucumberAndroidJUnitRunner , Right now after executing below command from application, app is going background , but i want app to be in foreground and show result of each test scenario .

Process process = Runtime.getRuntime().exec(command);

command is below ..

/system/bin/am instrument -w -e debug false -e class com.sample.auto.androidBDD.MyAppCucumberAndroidJUnitRunner -e features /features/Release/ExecuteCommand_method.feature com.sample.auto.androidBDD.test/com.sample.auto.androidBDD.MyAppCucumberAndroidJUnitRunner

I can see feature file execution happening properly from logs and i can see results generated in html format once after execution. I want to see results in the android app screen while executing the feature file .

Leave a Comment