How to test your app with the SDK
What should be tested
Testing, as you probably know, it's an important step to ensure quality application. First, let's discuss on what you should focus on when testing your app with the SDK:
- Challenge - you should simulate a challenge in different scenarios in your app and verify that the challenge is shown correctly to the user.
- Stat your app without internet connection - in the mobile world internet connection is sometimes not available. Make sure that your app behave the as you except when you start it without internet connection and have a connection later.
How to simulate a challenge
There are 2 ways to simulate a challenge in your app:
- Enforcement Verification
- Doctor App
Using the Testing tool in the Portal
- Open the Testing tool in the portal.
- Retrieve the VID
- Using the VID Extractor
- Click on the
Find your VID
button. - Enter your device's public IP.
- Select the relevant session.
- Click on the
- Using the SDK's API
- Use the
PerimeterX/vid(forAppId:)
function to get VID. - Enter the value in the
VID
field.
- Use the
- Using the VID Extractor
- Click on the
Start testing
button. - In your app, trigger an URL request to your server.
- You should get a challenge.
Using the Doctor App
- Start the SDK with the Doctor App enabled.
- In the "instruction screen", press the "x" button.
- Navigate in your app to the place you wish to get a challenge (don't make the URL request yet).
- Shake the device to bring the Doctor App back.
- Continue to the "test selection screen" and start the relevant test.
- In your app, trigger an URL request to your server.
- You should get a challenge.
Updated 12 days ago