Run script-based instrumentation on iOS apps

To run script-based instrumentation on Android apps, perform the following steps.

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.

Copy

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.

What's next?

When the app is instrumented, installed, and running on the device, you can inject sensory input. To learn more, see: