My android app project programmatically starts system dialog to install trusted CA certificate:
Intent intent = KeyChain.createInstallIntent();
intent.putExtra(KeyChain.EXTRA_PKCS12, certificate);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
This code pops up the system dialog as showing below:
Above thing is about my Android app project. Now, about test:
I am using Calabash to write automated acceptance tests for my project.
I know Calabash provids pre-defined step definitions. But those steps provide keywords to interact with app's UI components (e.g. input text, press button). I can't find how to use those pre-defined steps to test whether the system dialog is showing.
My questions:
Q1. How to use Calabash pre-defined step definitions to check the system dialog is showing? How to input text into the dialog?
Q2. If answer to Q1 is "it's impossible", then, how can I use Calabash to test it? Looks like I need to write my own Ruby function to test it? If so, how to write Ruby function to test this system dialog is showing & how to interact with the system dialog in test with Calabash?