Test Methods using Testing Tool
Nostra’s Testing tool enables you to verify and test exposed game methods, just by clicking the Test button. By using the tool, you can ensure the smooth functioning of mandatory game methods such as Pause, Resume, and Replay.
The button triggers a pop-up screen with Yellow buttons for available methods and Black buttons for unavailable ones.
The features of the tool are as follows:
-
Easy activation and testing of the implemented methods
-
Enables Loading and Leaderboard screens for testing.
-
Employs visual cues for the availability of the methods.
Methods
The following methods are available for testing your game:
| Method | Description |
|---|---|
| Pause | Pauses the game |
| Resume | Resumes the paused game |
| Next Level | Starts the next level |
| Go To Home | Takes back to the game’s home page |
| Sound On | Turns on the sound of the game |
| Sound Off | Turns off the sound of the game |
| Go To Level | Jumps to the selected level |
Activate the Testing tool to your game
You can activate the Testing tool by adding autotesting=true as the parameter in the game URL.
Follow the steps to activate the testing tools in your game:
- Add the following script to the index.html file:
<script type="text/javascript"
src="https://g-mob.glance-cdn.com/public/content/assets/other/foundation-testingv1.js"/>
-
Add the following parameters to the game URL:
-
For endless game:
&gameId=34929110-4715-11ee-bc56-534893b9f9d8&game_end=newlb&foundation=true&autotesting=true
- For level-based games:
foundation=true&autotesting=true
The Test button activates and is visible on the screen after you complete these steps.
Remove the script for the URL when sharing with your Glance Account Manager.