Run script-based instrumentation on iOS apps
To run script-based instrumentation on Android apps, perform the following steps.
On this page:
Step 1 | Download the Python script
Go to GitHub to download the Python script: customInstrumentWrapper.py
Step 2 | Run Perfecto's re-sign script on the Mac machine
Run the following script with the Python service: customInstrumentWrapper.py
To learn more about the available parameters, see Parameters for iOS script instrumentation.
Example script activation
python3 customInstrumentWrapper.py -i inputIPA.ipa -o outputIPA.ipa -t token.txt -p provision.mobileprovision -c "certificate name" -u LAB.perfectomobile.com -v <labVersionNum> -ih -is
During execution, the script reports its progress. Upon completion, the fully instrumented and signed .ipa
file is generated.
Step 3 | Upload the app to Perfecto
How you upload the instrumented application to Perfecto depends on whether you are a manual tester or an automation tester.
Make sure not to instrument the app again during the app installation process.
-
Manual tester: Install and start the app through the Perfecto UI.
To learn more, see Application management.
-
Automation tester: Upload the app to the Perfecto repository, and then install and start the app on the device using Appium drivers.
To learn more, see Application installation and startup with Appium and Application installation and startup with Appium.
What's next?
When the app is instrumented, installed, and running on the device, you can inject sensory input. To learn more, see:
-
Inject biometric data (manual testing)
-
Injection of sensory input (automation testing)