You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yuriy Morozov edited this page Jun 17, 2015
·
5 revisions
Running tests in browser
It is possible to run test fixture in browser and get test execution results for specific page. In order to do this just open browser console and add sc_testrunnerjs=1 query parameter to the page query string and reload the page. (sc_testfixture=custom_file can be added as well).
Example: http://sc/sitecore/shell/sitecore/client/Applications/SampleApp/FirstPage?sc_testrunnerjs=1 Example with tests from custom file: http://sc/sitecore/shell/sitecore/client/Applications/SampleApp/FirstPage/Pages/SecondPage?sc_testfixture=additionaltests&sc_testrunnerjs=1
During page load all test environment will be loaded as well and test will be executed. Test results will be displayed in browser console. Test execution output is represented on the following example:
[Introduced in 0.8.0]
Also there are several collapsed by default sections in console output:
SPEAK debug output (It contains all SPEAK controls debug output that is produced in debug mode)
Fake requests (In case you are using fake server it contains all requests sent to the fake server and returned responses)