Test Suite for Xamarin iOS
The LevelPlay integration test suite enables you to quickly and easily test your app’s integration, verify platform setup and review ads related to your configured networks.
Follow this step-by-step guide to test the integration of your app via your on-device UI tool.
Enable the test suite with SetMetaData flag (beta)
To enable the test suite in your app, call the setMetaData API before setting the init:
IronSource.setMetaDataWithKey("is_test_suite", "enable");
Launch the LevelPlay test suite
LevelPlay test suite should be launched after mediation init is completed successfully. Call the following method to launch the test suite
IronSource.LaunchTestSuite(this);
Implementation example:
Create a class that inherits from ISInitializationDelegate. In the following example initializationDidComplete calls launchTestSuite()
public class InitializationDelegate : ISInitializationDelegate
{
readonly ViewController view;
public InitializationDelegate(ViewController view)
{
this.view = view;
}
public override void initializationDidComplete()
{
IronSource.launchTestSuite(this);
}
}
View your app info
Once you’ve launched the test suite on your app, you can review your app info in one place, based on the device and init response parameters. The following data is available in the App info tab:
- App details
- SDK information
- App Configuration- iOS only
- Regulation settings
- Metadata parameter
View ad sources
The Ad sources tab displays the LevelPlay mediated networks configured in your waterfall. It indicates the ad source type, the integration status of each network, the supported ad units, and the ad load/show status.
Integration status
The test suite will automatically check that you’ve installed an SDK and adapter for each ad source once it’s been launched. Review and filter ad sources based on the integration status. If the integration is successful, the SDK and adapter versions will be displayed. If the integration is incomplete, the versions will be missing.
Follow the Add Mediation networks guide to complete the network integration.
Ad Unit status
The ad sources page displays the ad units configured for each ad source. Each ad unit will display one of the following status indicators:
- Orange – The ad is pending load/Show
- Green – The ad was shown successfully
- Red – load/show failure
Test ad load
Tap a single network to start testing ad loads for each ad unit. You can only select ad sources that have an SDK and adapters installed.
Select an ad unit and click the Load ad button to request an ad. The screen will indicate the status of the ad:
- Green: An ad loaded or showed successfully
- Orange: An ad hasn’t been tested yet
- Red: Ad load or show fail. The reason for the failure will be displayed on the screen.
For bidding ad sources, you can request to test live or test ads. Non-bidding ad sources can only test live ads.
If the ad loaded successfully, click on the Show ad button to view the ad.