Testing on Sandbox
The Sandbox allows you to test your game and emulate some of the functionalities Arenas provide.
General UI
Below there's a screenshot showing the general UI of the Sandbox, and its different sections.
Testing a Game
Rendering the game
- Paste the game url on the 'Game URL' field.
- Click the 'Render' button.
- The game should load on the panel under the Game Info section.
Status Indicators
While testing a game, the Status Indicators section on the right will display which events were already triggered by the game. This makes it easier to observe whether the expected game events are correctly triggered during testing. |
Login
| Some features (e.g. Remote Storage) are only accessible for authenticated users. The Sandbox provides a login flow to login as a user in order to test those features. |
Please make sure you are using the proper credentials when logging in. Dev environment credentials should be used when logging in on Sandbox Dev environment. Please contact your Arkadium partner in order to provide you the needed credentials.
Events Log
This is where interactions, events and useful information is logged while interacting with the Sandbox and testing its features. This sections allow users to:
- Check logs
- Clear logs
- Filter logs
Features
The features section, located on the left side of the Sandbox, allows users to test several features and settings. Each one of them will be described in detail in the sections below.
Analytics
In this panel, the user can:
|
Ads
In this panel, the user can test showing Banner Ads and Preroll Ads at the Arena level and change Video Ads and Display Ads domains/urls. |
Arena Environment
In this panel, the user can change the Arena environment. The default is DEV and it's usually the recommended environment to test games. |
Lifecycle Events
In this panel, the user can test triggering the pause/resume lifecycle events sent from the Arena to the Game. For more info, check the Registering Event Callback section. |
Game Settings
In this panel, the user can test changing the arena name and the game id. |
Mock User
Below are detailed the different functionalities and which GameSDK APIs are affected by them:
- Mock User toggle: Enables or disables the Mock User. When enabled, auth.isUserAuthorized() returns true and auth.getUserProfile() returns a mock user profile object with the following structure:
{
uid: 'mock-uid',
username: 'mock-username',
avatar: {
png: '',
webp: ''
},
isUserSubscriber: boolean // this value depends on the Subscribed User toggle
}
- Gems amount: the amount can be manually changed. Calling wallet.getGems() will return the amount showing here. Calling wallet.consumeGems(n) will decrease the amount of gems by n.
- Subscribed User toggle: Enables or disables the subscription of the mock user. This simulates the Arkadium Advantage Subscription real users can subscribe to on Arkadium.com. When enabled, all Banner and Interstitial APIs will be affected, since the subscription disables Banner and Interstitial Ads for users.
Please make sure to refresh the Sanbox page every time a new game url needs to be tested, otherwise some validations might be skipped when loading the new game url.
Display Settings
In this panel, the user can test different display settings to be used by the game container. |
Wallet
In this panel, the user can test changing the Gems Supported flag setted by the Arena. This changes the value returned by the following SDK API: Check if Gems is supported. |