{"_id":"56ad4b89c00d120d00744353","user":"56acd6caa040860d00ac94a2","version":{"_id":"56acd71213ac890d001c3c7d","project":"56acd71213ac890d001c3c7a","__v":15,"createdAt":"2016-01-30T15:30:26.928Z","releaseDate":"2016-01-30T15:30:26.928Z","categories":["56acd71313ac890d001c3c7e","56acd8f113ac890d001c3c81","56acd8f95ac4060d0027865e","56acd93a13ac890d001c3c82","56ad20660ab3c00d00ce3347","56ad356a2a7860170013f714","56ad47eb0ab3c00d00ce334f","56afd523bc304a0d00ace1df","56b29a019621f20d00efb37e","56b657e11bc6970d009feee7","5845cc3c39950c1b002afe77","5845cde163c11b250037967e","5846efd45d064323007b17b4","588604da4674e32300efd160","588627882393d50f00f1322c"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"parentDoc":null,"category":{"_id":"56acd8f113ac890d001c3c81","__v":6,"pages":["56acecb32a7860170013f6e9","56acedfed21f1b0d00fd2f70","56aceedb5ac4060d0027866d","56acef31693f0a0d0085f0ab","56acf23d2a7860170013f6f3","56ad4b89c00d120d00744353"],"project":"56acd71213ac890d001c3c7a","version":"56acd71213ac890d001c3c7d","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-01-30T15:38:25.293Z","from_sync":false,"order":8,"slug":"singularity","title":"Singularity"},"githubsync":"","__v":4,"project":"56acd71213ac890d001c3c7a","updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-01-30T23:47:21.685Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":4,"body":"[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"Make sure you're ready to test!\",\n  \"body\": \"In order to use this functionality, you must[ register a client application](https://gamewisp.readme.io/docs/api-authorization), and [connect your app](https://gamewisp.readme.io/docs/connecting-to-a-gamewisp-channel) to the channel you created when you registered for GameWisp.\"\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Basic Testing Procedure\"\n}\n[/block]\nIf you've created an application that uses Singularity and would like to send test events to ensure that your application is working properly, you can do so through the GameWisp site. \n\nSimply access the Application Integrations page on your GameWisp Channel Dashboard the same way you did when you [registered your application](https://gamewisp.readme.io/docs/api-authorization). Once there, you can use the \"Application Testing\" menu to test your application. \n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/gKk8WE0YRIuFjp4PkEzc_application_testing.png\",\n        \"application_testing.png\",\n        \"1229\",\n        \"882\",\n        \"#b57251\",\n        \"\"\n      ],\n      \"border\": true,\n      \"caption\": \"The Application Testing menu. Enter a Client Identifier and events will be sent on behalf of the logged in user.\"\n    }\n  ]\n}\n[/block]\nSimply paste in the Identifier of any client you have created on GameWisp (found in the Developer Integration section of the Application Integrations page), and GameWisp will send events on behalf of the logged in user.\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"The Channel must have Authorized Access to Your Application\",\n  \"body\": \"Remember, in order for testing to work, you must make sure that the user you're logged in as has granted your application access to its data. Your app must also be connected to the logged in user's GameWisp channel via singularity using the channel's OAuth access_token and the [channel-connect](https://gamewisp.readme.io/docs/channel-connect) on-demand event.\"\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"What Next?\"\n}\n[/block]\nNow that you know the basics, why not dig into the nuts and bolts of Singularity's [Real-Time](https://gamewisp.readme.io/docs/real-time-events) and [On-Demand](https://gamewisp.readme.io/docs/on-demand-event-basics) events?","excerpt":"The GameWisp application contains functionality for testing your Singularity application. Here's how...","slug":"testing-singularity","type":"basic","title":"Testing Singularity"}

Testing Singularity

The GameWisp application contains functionality for testing your Singularity application. Here's how...

[block:callout] { "type": "warning", "title": "Make sure you're ready to test!", "body": "In order to use this functionality, you must[ register a client application](https://gamewisp.readme.io/docs/api-authorization), and [connect your app](https://gamewisp.readme.io/docs/connecting-to-a-gamewisp-channel) to the channel you created when you registered for GameWisp." } [/block] [block:api-header] { "type": "basic", "title": "Basic Testing Procedure" } [/block] If you've created an application that uses Singularity and would like to send test events to ensure that your application is working properly, you can do so through the GameWisp site. Simply access the Application Integrations page on your GameWisp Channel Dashboard the same way you did when you [registered your application](https://gamewisp.readme.io/docs/api-authorization). Once there, you can use the "Application Testing" menu to test your application. [block:image] { "images": [ { "image": [ "https://files.readme.io/gKk8WE0YRIuFjp4PkEzc_application_testing.png", "application_testing.png", "1229", "882", "#b57251", "" ], "border": true, "caption": "The Application Testing menu. Enter a Client Identifier and events will be sent on behalf of the logged in user." } ] } [/block] Simply paste in the Identifier of any client you have created on GameWisp (found in the Developer Integration section of the Application Integrations page), and GameWisp will send events on behalf of the logged in user. [block:callout] { "type": "info", "title": "The Channel must have Authorized Access to Your Application", "body": "Remember, in order for testing to work, you must make sure that the user you're logged in as has granted your application access to its data. Your app must also be connected to the logged in user's GameWisp channel via singularity using the channel's OAuth access_token and the [channel-connect](https://gamewisp.readme.io/docs/channel-connect) on-demand event." } [/block] [block:api-header] { "type": "basic", "title": "What Next?" } [/block] Now that you know the basics, why not dig into the nuts and bolts of Singularity's [Real-Time](https://gamewisp.readme.io/docs/real-time-events) and [On-Demand](https://gamewisp.readme.io/docs/on-demand-event-basics) events?