View Full Version : Sample test does not run on Windows 10

3 Apr 2017, 5:34 AM
Hi folks!

I'm new to Sencha and so for Sencha Test. On my Windows 10 machine I installed the latest Sencha Studio and imported a sample project for ours. Following tutorials I created a test suite with the sample "it should pass 1 = 1" test. But I cannot run this test, neither via IDE nor CLI.

On the scenario I selected my local Chrome browser and the sample test. When I click on RUN, the browser selection on the right gets updated with gray bullets or void but nothing else happens. Changing the scenario's test type to "Webdriver" or "In-browser" does not change anything in regard for the outcome.

I also tried to execute the test via CLI but no success either. I always end up with this message: "Sencha Test v2.0.2Error: Sencha Cmd install directory not found : C:\Users\[MY_PROFILE]\bin\Sencha\Cmd." That's right, my Sencha Cmd installation is located in C:\dev\Sencha\Cmd. Where's the configuration to change that stc can find Sencha Cmd?

Any hints how to get the tests run? Is an archive server mandatory to run the tests? Is there anything that I might have missed? Using Google was no help so far.


After some try-and-error runs I ended up with this message:
System error: TypeError: Cannot read property 'prototype' of undefined at constructor.applyMainView ( at constructor.setter [as setMainView] ( at constructor.<anonymous> ( at constructor.initMainView ( at constructor.onBeforeLaunch ( at constructor.callParent ( at constructor.onBeforeLaunch ( at constructor.callParent ( at constructor.onBeforeLaunch ( at constructor.onProfilesReady (

4 Apr 2017, 6:36 AM

Have you created a dev/testing/prod build for the app prior to executing the tests? I ask because the errors you're reporting are coming from the framework itself, which might suggest you need to build/run app watch prior to running the test.

5 Apr 2017, 2:04 AM
Yes, prior I executed "sencha app watch" and the application is accessible. The path variables are also correct if Sencha Cmd is executed manually. Maybe a look at Sencha Studio screenshot is helpful here: 56132

5 Apr 2017, 4:18 AM
I checked that but still no success. I noticed that there was no installation dir setting for Sencha Cmd in my Studio so I applied the correct dir. But still no success in running any test.

5 Apr 2017, 8:20 AM
So I think the main error here was to NOT install Sencha Cmd and Sencha Test into the installer's recommended folders. After reinstalling the tests seem to run. It is also NOT SUFFICIENT to just checkout the project and write tests. The project must be compiled successfully before tests are executed.