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.

To re-sign individual components of the app (such as plug-ins) with different provisioning profiles and certificates, see Use custom re-sign paths for component-specific signing.

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?

(Optional) You can re-sign individual components of the app (such as plug-ins) with different provisioning profiles and certificates using a custom re-sign path.

When the app is instrumented, installed, and running on the device, you can inject sensory input. If you enabled object (hybrid) instrumentation, you can also use Object Spy to inspect app objects. To learn more, see Sensor testing.