Skip to main content

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. Sandbox General UI

Testing a Game

Rendering the game

  1. Paste the game url on the 'Game URL' field.
  2. Click the 'Render' button.
  3. The game should load on the panel under the Game Info section. Render Game Top Render Game Panel

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.

Status Indicators

Login

Login Button Login Form

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.

warning

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 Events Log

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

Features Analytics

In this panel, the user can:

  • Log the Analytics Info on the Events Log
  • Disable Console Provider

Ads

Features 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

Features 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

Features Lifecycle

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

Features Game Settings

In this panel, the user can test changing the arena name and the game id.

Mock User

Sandbox Mock User UI

Below are detailed the different functionalities and which GameSDK APIs are affected by them:

{
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.
warning

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

Features Display Settings

In this panel, the user can test different display settings to be used by the game container.

Wallet

Features 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.