Results 1 to 2 of 2

Thread: Ext.create is not a function when running Embedded WebDriver test from Studio

  1. #1
    Sencha Premium Member
    Join Date
    Aug 2007
    Location
    NYC
    Posts
    94

    Default Answered: Ext.create is not a function when running Embedded WebDriver test from Studio

    I generated an ExtJs project using ExtJs 6.2.1.167. No other modifications were made to the project. Then I initialized a test folder with Studio 2.1.1.31.

    I created the following jasmin test:

    Code:
    describe("suite1", function() {
        it("should pass", function() {
            Ext.create('Ext.data.Store', {
                fields: ['firstName', 'lastName'],
                data : [
                    {firstName: 'Peter',   lastName: 'Venkman'},
                    {firstName: 'Egon',    lastName: 'Spengler'},
                    {firstName: 'Ray',     lastName: 'Stantz'},
                    {firstName: 'Winston', lastName: 'Zeddemore'}
                ]
            });        
            expect(1).toBe(1);
        });
    });
    I ran the test three ways:
    * in studio, in browser test: success
    * command line stc using embedded selenium: success
    * in studio, embedded webdrive: FAIL

    Ext.create is not found. Why is this happening?

    Here are some log results:

    Code:
    1870	2:17:28.245	[DBG]	[DEBUG] [test/BaseRunner] Dispatching runStarted
    1871	2:17:28.261	[DBG]	[DEBUG] [test/BaseRunner] Dispatching agentAdded
    1872	2:17:29.123	[DBG]	[DEBUG] [test/BaseRunner] Dispatching agentLaunched
    1873	2:17:29.132	[DBG]	[DEBUG] [model/test/SandboxAgent] Launching sandbox agent
    1874	2:17:45.019	[INF]	[INFO] [model/browser/SandboxBrowser-61] [INFO] [process/ElectronSandboxProcess] Sandbox process running
    1875	2:17:45.081	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [process/ElectronSandboxProcess] Loading file://C:/Users/me/Sencha/Test/2_1_1_31/resources/app.asar/node_modules/orion-core/sandbox/sandbox.html
    1876	2:17:56.791	[INF]	[INFO] [model/browser/SandboxBrowser-61] [INFO] Initializing Sencha Test sandbox
    1877	2:17:56.795	[INF]	[INFO] [model/browser/SandboxBrowser-61] [INFO] Loading Sencha Test core
    1878	2:17:56.804	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/init
    1879	2:17:56.807	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/debug
    1880	2:17:56.809	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/supports
    1881	2:17:56.811	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/base
    1882	2:17:56.819	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/common
    1883	2:17:56.826	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/context/Base
    1884	2:17:56.828	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/context/Custom
    1885	2:17:56.830	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/context/Local
    1886	2:17:56.836	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/context/WebDriver
    1887	2:17:56.838	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/context/WebDriverRecorder
    1888	2:17:56.839	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/context/WebDriverInspector
    1889	2:17:56.843	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/Version
    1890	2:17:56.846	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/Browser
    1891	2:17:56.856	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/OS
    1892	2:17:56.858	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/Element
    1893	2:17:56.875	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/Timer
    1894	2:17:56.877	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/KeyMap
    1895	2:17:56.878	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/Alert
    1896	2:17:56.887	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/Url
    1897	2:17:56.888	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/event/Event
    1898	2:17:56.890	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/event/wgxpath.install
    1899	2:17:56.894	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/Locator
    1900	2:17:56.904	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/locator/Strategy
    1901	2:17:56.906	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/locator/Strategy
    1902	2:17:56.908	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/event/Driver
    1903	2:17:56.918	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/event/Event
    1904	2:17:56.933	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/event/Injector
    1905	2:17:56.941	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/playable/Playable
    1906	2:17:56.942	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/playable/State
    1907	2:17:56.943	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/event/Player
    1908	2:17:56.944	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/event/Recorder
    1909	2:17:56.952	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/event/MagicCanvasRecorder
    1910	2:17:56.960	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/event/GestureQueue
    1911	2:17:56.962	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/future/Element
    1912	2:17:57.005	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/future/Component
    1913	2:17:57.014	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/pageobject/Manager.js
    1914	2:17:57.016	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/pageobject/Base.js
    1915	2:17:57.021	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/orion
    1916	2:17:57.023	[INF]	[INFO] [model/browser/SandboxBrowser-61] [INFO] Loading test framework
    1917	2:17:57.039	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded jasmine-core/lib/jasmine-core/jasmine.js
    1918	2:17:57.041	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/jasmine-orion
    1919	2:17:57.044	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/jasmine-pre-extensions
    1920	2:17:57.072	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/jasmine/boot
    1921	2:17:57.076	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/jasmine-post-extensions
    1922	2:17:57.079	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] Loaded ../serve/Expect.js
    1923	2:17:57.088	[INF]	[INFO] [model/browser/SandboxBrowser-61] [INFO] Loading scenario libraries
    1924	2:17:57.090	[INF]	[INFO] [model/browser/SandboxBrowser-61] [INFO] Loading page objects
    1925	2:17:57.091	[INF]	[INFO] [model/browser/SandboxBrowser-61] [INFO] Loading test suites
    1926	2:17:57.092	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [orion] GET http://localhost:8701/~orion/register?_dc=1502211541411&agentId=1&sessionId=1502211541351&runnerId=26
    1927	2:17:57.111	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] ST.Gate testsReady blocks count is now: 2
    1928	2:17:57.112	[INF]	[INFO] [model/browser/SandboxBrowser-61] [INFO] Loaded C:/examples/sencha-test/example2/hello/test/scenario1/suite1.js
    1929	2:17:57.122	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] ST.Gate ready unblock() blocks count is :1
    1930	2:17:57.124	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] ST.Gate ready is unblocked
    1931	2:17:57.125	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] ST.Gate ready is open with 3 callbacks.
    1932	2:17:57.126	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] ST.Gate testsReady unblock() blocks count is :2
    1933	2:17:57.127	[INF]	[INFO] [model/browser/SandboxBrowser-61] [INFO] Sandbox initialized
    1934	2:17:57.172	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] ST.Gate testsReady unblock() blocks count is :1
    1935	2:17:57.182	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] ST.Gate testsReady is unblocked
    1936	2:17:57.210	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] ST.Gate testsReady is open with 1 callbacks.
    1937	2:17:57.400	[DBG]	[DEBUG] [test/BaseRunner] Dispatching agentRegistered
    1938	2:17:57.411	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [orion] HTTP response code: 200
    1939	2:17:57.412	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [orion] POST http://localhost:8701/~orion/updates?_dc=1502211541734&agentId=1&sessionId=1502211541351&proxyId=c0296a50-7c5a-11e7-89b6-454caa8ec3e7
    1940	2:17:57.421	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [orion] GET http://localhost:8701/~orion/messages?_dc=1502211541735&agentId=1&sessionId=1502211541351&proxyId=c0296a50-7c5a-11e7-89b6-454caa8ec3e7
    1941	2:17:57.437	[DBG]	[DEBUG] [test/BaseRunner] Processing message: {"type":"beforeFiles","seq":1}...
    1942	2:17:57.439	[DBG]	[DEBUG] [test/BaseRunner] Dispatching message: beforeFiles
    1943	2:17:57.440	[DBG]	[DEBUG] [test/BaseRunner] Dispatching beforeFiles
    1944	2:17:57.442	[DBG]	[DEBUG] [test/BaseRunner] Processing message: {"type":"beforeFile","file":"sui...
    1945	2:17:57.443	[DBG]	[DEBUG] [test/BaseRunner] Dispatching message: beforeFile
    1946	2:17:57.444	[DBG]	[DEBUG] [test/BaseRunner] Dispatching beforeFile
    1947	2:17:57.446	[DBG]	[DEBUG] [test/BaseRunner] Processing message: {"type":"testSuiteEnter","name":...
    1948	2:17:57.447	[DBG]	[DEBUG] [test/BaseRunner] Dispatching message: testSuiteEnter
    1949	2:17:57.448	[DBG]	[DEBUG] [test/BaseRunner] Dispatching testSuiteEnter
    1950	2:17:57.481	[DBG]	[DEBUG] [test/BaseRunner] Processing message: {"type":"testAdded","name":"shou...
    1951	2:17:57.482	[DBG]	[DEBUG] [test/BaseRunner] Dispatching message: testAdded
    1952	2:17:57.483	[DBG]	[DEBUG] [test/BaseRunner] Dispatching testAdded
    1953	2:17:57.488	[DBG]	[DEBUG] [test/BaseRunner] Processing message: {"type":"testSuiteLeave","id":10...
    1954	2:17:57.489	[DBG]	[DEBUG] [test/BaseRunner] Dispatching message: testSuiteLeave
    1955	2:17:57.490	[DBG]	[DEBUG] [test/BaseRunner] Dispatching testSuiteLeave
    1956	2:17:57.491	[DBG]	[DEBUG] [test/BaseRunner] Processing message: {"type":"afterFile","file":"suit...
    1957	2:17:57.492	[DBG]	[DEBUG] [test/BaseRunner] Dispatching message: afterFile
    1958	2:17:57.493	[DBG]	[DEBUG] [test/BaseRunner] Dispatching afterFile
    1959	2:17:57.494	[DBG]	[DEBUG] [test/BaseRunner] Processing message: {"type":"afterFiles","seq":7}...
    1960	2:17:57.495	[DBG]	[DEBUG] [test/BaseRunner] Dispatching message: afterFiles
    1961	2:17:57.498	[DBG]	[DEBUG] [test/BaseRunner] Dispatching afterFiles
    1962	2:17:57.529	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [orion] HTTP response code: 200
    1963	2:17:57.547	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [orion] HTTP response code: 200
    1964	2:17:57.555	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [orion] Creating context of type webdriver
    1965	2:17:57.633	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] _prefetchSTContent, _STFiles=init.js,logger.js,debug.js,supports.js,base.js,Version.js,common.js,cache.js,Timer.js,setup-ext.js,context/Base.js,context/Local.js,context/LocalWebDriver.js,Browser.js,OS.js,Element.js,KeyMap.js,Alert.js,event/Event.js,event/GestureQueue.js,event/wgxpath.install.js,Locator.js,locator/Strategy.js,event/Driver.js,event/Recorder.js,playable/Playable.js,playable/State.js,future/Element.js,future/Component.js
    1966	2:17:57.644	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [orion] Driver configuration: {"host":"localhost","port":4454,"desiredCapabilities":{"browserName":"chrome","detected":true,"version":"57.0","sencha":{"concurrency":1}}}
    1967	2:17:57.652	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] ST.Gate testsReady blocks count is now: 1
    1968	2:17:57.660	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Initializing WebdriverIO
    1969	2:17:57.667	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [orion] Context is not recording
    1970	2:17:57.674	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [orion] GET http://localhost:8701/~orion/messages?_dc=1502211541895&agentId=1&sessionId=1502211541351&proxyId=c0296a50-7c5a-11e7-89b6-454caa8ec3e7&runId=1
    1971	2:17:59.230	[INF]	Starting ChromeDriver 2.29.461591 (62ebf098771772160f391d75e589dc567915b233) on port 11480
    1972	2:17:59.235	[INF]	Only local connections are allowed.
    1973	2:18:06.637	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Retrieving browser information
    1974	2:18:06.869	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] User agent Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.110 Safari/537.36
    1975	2:18:06.882	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loading Sencha Test in target browser
    1976	2:18:10.940	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loading init.js
    1977	2:18:11.027	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loaded init.js
    1978	2:18:11.040	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loading logger.js
    1979	2:18:11.042	[WRN]	[WARN] [model/browser/SandboxBrowser-61] [WARN] [context/WebDriver] http://10.7.151.120:8701/favicon.ico - Failed to load resource: the server responded with a status of 404 (Not Found)
    1980	2:18:11.043	[WRN]	[WARN] [model/browser/SandboxBrowser-61] [WARN] [context/WebDriver] http://10.7.151.120:8701/.sencha/temp/Hello/classic/bootstrap.js 2408 Use of the Application Cache is deprecated on insecure origins. Support will be removed in the future. You should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.
    1981	2:18:11.065	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loaded logger.js
    1982	2:18:11.067	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loading debug.js
    1983	2:18:11.096	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loaded debug.js
    1984	2:18:11.111	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loading supports.js
    1985	2:18:11.127	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loaded supports.js
    1986	2:18:11.128	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loading base.js
    1987	2:18:11.159	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loaded base.js
    1988	2:18:11.161	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loading Version.js
    1989	2:18:11.195	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loaded Version.js
    1990	2:18:11.205	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loading common.js
    1991	2:18:11.232	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loaded common.js
    1992	2:18:11.234	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loading cache.js
    1993	2:18:11.257	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loaded cache.js
    1994	2:18:11.259	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loading Timer.js
    1995	2:18:11.302	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loaded Timer.js
    1996	2:18:11.305	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loading setup-ext.js
    1997	2:18:11.329	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loaded setup-ext.js
    1998	2:18:11.340	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loading context/Base.js
    1999	2:18:11.359	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loaded context/Base.js
    2000	2:18:11.361	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loading context/Local.js
    2001	2:18:11.390	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loaded context/Local.js
    2002	2:18:11.391	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loading context/LocalWebDriver.js
    2003	2:18:11.418	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loaded context/LocalWebDriver.js
    2004	2:18:11.419	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loading Browser.js
    2005	2:18:11.449	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loaded Browser.js
    2006	2:18:11.451	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loading OS.js
    2007	2:18:11.480	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loaded OS.js
    2008	2:18:11.491	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loading Element.js
    2009	2:18:11.512	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loaded Element.js
    2010	2:18:11.523	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loading KeyMap.js
    2011	2:18:11.547	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loaded KeyMap.js
    2012	2:18:11.555	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loading Alert.js
    2013	2:18:11.579	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loaded Alert.js
    2014	2:18:11.588	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loading event/Event.js
    2015	2:18:11.609	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loaded event/Event.js
    2016	2:18:11.610	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loading event/GestureQueue.js
    2017	2:18:11.636	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loaded event/GestureQueue.js
    2018	2:18:11.640	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loading event/wgxpath.install.js
    2019	2:18:11.679	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loaded event/wgxpath.install.js
    2020	2:18:11.690	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loading Locator.js
    2021	2:18:11.708	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loaded Locator.js
    2022	2:18:11.710	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loading locator/Strategy.js
    2023	2:18:11.736	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loaded locator/Strategy.js
    2024	2:18:11.738	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loading event/Driver.js
    2025	2:18:11.766	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loaded event/Driver.js
    2026	2:18:11.767	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loading event/Recorder.js
    2027	2:18:11.793	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loaded event/Recorder.js
    2028	2:18:11.794	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loading playable/Playable.js
    2029	2:18:11.821	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loaded playable/Playable.js
    2030	2:18:11.823	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loading playable/State.js
    2031	2:18:11.854	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loaded playable/State.js
    2032	2:18:11.855	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loading future/Element.js
    2033	2:18:11.887	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loaded future/Element.js
    2034	2:18:11.889	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loading future/Component.js
    2035	2:18:11.948	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loaded future/Component.js
    2036	2:18:11.959	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loading tail.js
    2037	2:18:11.981	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Loaded tail.js
    2038	2:18:11.984	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Initializing Sencha Test in target browser
    2039	2:18:12.081	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] Sencha Test initialized in target browser
    2040	2:18:12.090	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] ST.Gate testsReady unblock() blocks count is :1
    2041	2:18:12.091	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] ST.Gate testsReady is unblocked
    2042	2:18:12.132	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] ST.Gate testsReady is open with 1 callbacks.
    2043	2:18:12.142	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [orion] POST http://localhost:8701/~orion/updates?_dc=1502211556470&agentId=1&sessionId=1502211541351&proxyId=c0296a50-7c5a-11e7-89b6-454caa8ec3e7&runId=1
    2044	2:18:12.145	[DBG]	[DEBUG] [test/BaseRunner] Processing message: {"type":"testRunStarted","testId...
    2045	2:18:12.146	[DBG]	[DEBUG] [test/BaseRunner] Dispatching message: testRunStarted
    2046	2:18:12.148	[DBG]	[DEBUG] [test/BaseRunner] Dispatching testRunStarted
    2047	2:18:12.160	[ERR]	[ERROR] [model/browser/SandboxBrowser-61] [ERROR] [orion] TypeError: Ext.create is not a function
        at Object.<anonymous> (C:\examples\sencha-test\example2\hello\test\scenario1\suite1.js:3:13)
        at Object.call (C:\Users\me\Sencha\Test\2_1_1_31\resources\app.asar\node_modules\orion-core\serve\orion.js:1101:30)
        at Object.invoke (C:\Users\me\Sencha\Test\2_1_1_31\resources\app.asar\node_modules\orion-core\serve\orion.js:1207:16)
        at Object.me.wrapperFn (C:\Users\me\Sencha\Test\2_1_1_31\resources\app.asar\node_modules\orion-core\serve\orion.js:1028:16)
        at attemptAsync (C:\Users\me\Sencha\Test\2_1_1_31\resources\app.asar\node_modules\orion-core\node_modules\jasmine-core\lib\jasmine-core\jasmine.js:2942:26)
        at QueueRunner.run (C:\Users\me\Sencha\Test\2_1_1_31\resources\app.asar\node_modules\orion-core\node_modules\jasmine-core\lib\jasmine-core\jasmine.js:2890:9)
        at QueueRunner.execute (C:\Users\me\Sencha\Test\2_1_1_31\resources\app.asar\node_modules\orion-core\node_modules\jasmine-core\lib\jasmine-core\jasmine.js:2878:10)
        at Spec.queueRunnerFactory (C:\Users\me\Sencha\Test\2_1_1_31\resources\app.asar\node_modules\orion-core\node_modules\jasmine-core\lib\jasmine-core\jasmine.js:715:35)
        at Spec.execute (C:\Users\me\Sencha\Test\2_1_1_31\resources\app.asar\node_modules\orion-core\node_modules\jasmine-core\lib\jasmine-core\jasmine.js:362:10)
        at Object.fn (C:\Users\me\Sencha\Test\2_1_1_31\resources\app.asar\node_modules\orion-core\node_modules\jasmine-core\lib\jasmine-core\jasmine.js:3617:37)
    2048	2:18:12.163	[DBG]	[DEBUG] [test/BaseRunner] Processing message: {"type":"testSuiteStarted","id":...
    2049	2:18:12.165	[DBG]	[DEBUG] [test/BaseRunner] Dispatching message: testSuiteStarted
    2050	2:18:12.166	[DBG]	[DEBUG] [test/BaseRunner] Dispatching testSuiteStarted
    2051	2:18:12.168	[DBG]	[DEBUG] [test/BaseRunner] Processing message: {"type":"testStarted","id":-9745...
    2052	2:18:12.169	[DBG]	[DEBUG] [test/BaseRunner] Dispatching message: testStarted
    2053	2:18:12.170	[DBG]	[DEBUG] [test/BaseRunner] Dispatching testStarted
    2054	2:18:12.172	[DBG]	[DEBUG] [test/BaseRunner] Processing message: {"type":"systemError","message":...
    2055	2:18:12.173	[DBG]	[DEBUG] [test/BaseRunner] Dispatching message: systemError
    2056	2:18:12.174	[DBG]	[DEBUG] [test/BaseRunner] Dispatching systemError
    2057	2:18:12.290	[DBG]	[DEBUG] [model/test/SandboxAgent] Waiting on agent to stop WebDriver.
    2058	2:18:12.305	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [orion] HTTP response code: 200
    2059	2:18:12.334	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [orion] POST http://localhost:8701/~orion/updates?_dc=1502211556487&agentId=1&sessionId=1502211541351&proxyId=c0296a50-7c5a-11e7-89b6-454caa8ec3e7&runId=1
    2060	2:18:12.353	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [orion] HTTP response code: 200
    2061	2:18:12.362	[DBG]	[DEBUG] [test/BaseRunner] Processing message: {"type":"testFinished","id":-974...
    2062	2:18:12.363	[DBG]	[DEBUG] [test/BaseRunner] Dispatching message: testFinished
    2063	2:18:12.364	[DBG]	[DEBUG] [test/BaseRunner] Dispatching testFinished
    2064	2:18:12.369	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [orion] POST http://localhost:8701/~orion/updates?_dc=1502211556547&agentId=1&sessionId=1502211541351&proxyId=c0296a50-7c5a-11e7-89b6-454caa8ec3e7&runId=1
    2065	2:18:12.417	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] All browser logs already fetched
    2066	2:18:12.432	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [orion] HTTP response code: 200
    2067	2:18:12.441	[DBG]	[DEBUG] [test/BaseRunner] Processing message: {"type":"testSuiteFinished","id"...
    2068	2:18:12.442	[DBG]	[DEBUG] [test/BaseRunner] Dispatching message: testSuiteFinished
    2069	2:18:12.443	[DBG]	[DEBUG] [test/BaseRunner] Dispatching testSuiteFinished
    2070	2:18:12.444	[DBG]	[DEBUG] [test/BaseRunner] Processing message: {"type":"response","responseSeq"...
    2071	2:18:12.445	[DBG]	[DEBUG] [test/BaseRunner] Dispatching message: response
    2072	2:18:12.446	[DBG]	[DEBUG] [test/BaseRunner] Dispatching response
    2073	2:18:12.447	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] All browser logs already fetched
    2074	2:18:12.457	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [orion] GET http://localhost:8701/~orion/messages?_dc=1502211556639&agentId=1&sessionId=1502211541351&proxyId=c0296a50-7c5a-11e7-89b6-454caa8ec3e7&runId=1
    2075	2:18:12.466	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [orion] HTTP response code: 200
    2076	2:18:12.475	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [orion] POST http://localhost:8701/~orion/updates?_dc=1502211556667&agentId=1&sessionId=1502211541351&proxyId=c0296a50-7c5a-11e7-89b6-454caa8ec3e7&runId=1
    2077	2:18:12.476	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [orion] HTTP response code: 200
    2078	2:18:14.391	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] driver.end() complete
    2079	2:18:14.406	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [orion] POST http://localhost:8701/~orion/updates?_dc=1502211558722&agentId=1&sessionId=1502211541351&proxyId=c0296a50-7c5a-11e7-89b6-454caa8ec3e7&runId=1
    2080	2:18:14.415	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [context/WebDriver] driver.end() complete
    2081	2:18:14.416	[DBG]	[DEBUG] [test/BaseRunner] Processing message: {"type":"terminated","seq":15}...
    2082	2:18:14.417	[DBG]	[DEBUG] [test/BaseRunner] Dispatching message: terminated
    2083	2:18:14.418	[DBG]	[DEBUG] [test/BaseRunner] Dispatching terminated
    2084	2:18:14.430	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [orion] HTTP response code: 200
    2085	2:18:14.438	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [orion] POST http://localhost:8701/~orion/updates?_dc=1502211558738&agentId=1&sessionId=1502211541351&proxyId=c0296a50-7c5a-11e7-89b6-454caa8ec3e7&runId=1
    2086	2:18:14.440	[DBG]	[DEBUG] [test/BaseRunner] Removing agent 1
    2087	2:18:14.440	[DBG]	[DEBUG] [test/BaseRunner] Dispatching agentTerminated
    2088	2:18:14.452	[DBG]	[DEBUG] [test/BaseRunner] Ignoring messages for removed agent 1
    2089	2:18:14.454	[DBG]	[DEBUG] [model/test/SandboxAgent] Sandbox terminated.
    2090	2:18:14.523	[DBG]	[DEBUG] [model/browser/SandboxBrowser-61] [DEBUG] [fs/Operations] Error: Cannot find module 'orion-core/lib/process/ProcessUtil'
        at Module._resolveFilename (module.js:455:15)
        at Function.Module._resolveFilename (C:\Users\me\Sencha\Test\2_1_1_31\resources\electron.asar\common\reset-search-paths.js:35:12)
        at Function.Module._load (module.js:403:25)
        at Module.require (module.js:483:17)
        at require (internal/module.js:20:19)
        at ProcessUtil (C:\Users\me\Sencha\Test\2_1_1_31\resources\app.asar\node_modules\orion-core\lib\fs\Operations.js:10:18)
        at C:\Users\me\Sencha\Test\2_1_1_31\resources\app.asar\node_modules\orion-core\lib\fs\Operations.js:190:24
        at File._removeDirWin (C:\Users\me\Sencha\Test\2_1_1_31\resources\app.asar\node_modules\orion-core\lib\fs\Operations.js:189:16)
        at C:\Users\me\Sencha\Test\2_1_1_31\resources\app.asar\node_modules\orion-core\lib\fs\Operations.js:242:32

  2. Hi--

    This is expected behavior. For in-browser scenarios, the Sencha Test API, the spec code, and the application code all execute within the same context (in this case, the local browser). For WebDriver-based scenarios, however, the context in which your specs run does not have access to the target browser...instead, we use the ST API to make call via webdriver to interact with the browser. Because of this, you'll never have access to the Ext object within your spec for a WebDriver-based scenario.

    Typically, for unit testing, you'd want to use in-browser scenarios since you aren't launching a full application, just testing individual classes separate from the whole of the application code. For more interaction/end-to-end testing, WebDriver-based scenarios make sense as you can work across page requests and do not typically need to interact directly with the application code.

    If you do need to interact with the browser context directly (where Ext JS is running), you can use ST.execute. In the function supplied, you can specify what code you would like to run in the target browser and then optionally return simple data, for example, to use for making assertions in an and() call.

    Hope this helps!
    Thanks
    Joel

  3. #2
    Sencha User joel.watson's Avatar
    Join Date
    Nov 2014
    Posts
    3,120
    Answers
    446

    Default

    Hi--

    This is expected behavior. For in-browser scenarios, the Sencha Test API, the spec code, and the application code all execute within the same context (in this case, the local browser). For WebDriver-based scenarios, however, the context in which your specs run does not have access to the target browser...instead, we use the ST API to make call via webdriver to interact with the browser. Because of this, you'll never have access to the Ext object within your spec for a WebDriver-based scenario.

    Typically, for unit testing, you'd want to use in-browser scenarios since you aren't launching a full application, just testing individual classes separate from the whole of the application code. For more interaction/end-to-end testing, WebDriver-based scenarios make sense as you can work across page requests and do not typically need to interact directly with the application code.

    If you do need to interact with the browser context directly (where Ext JS is running), you can use ST.execute. In the function supplied, you can specify what code you would like to run in the target browser and then optionally return simple data, for example, to use for making assertions in an and() call.

    Hope this helps!
    Thanks
    Joel

Similar Threads

  1. Replies: 2
    Last Post: 28 Feb 2017, 7:52 AM
  2. Replies: 5
    Last Post: 26 Sep 2016, 11:17 AM
  3. Replies: 3
    Last Post: 3 Aug 2016, 5:01 AM
  4. Replies: 2
    Last Post: 2 Aug 2016, 7:31 PM
  5. Newbie question on test automation using Selenium (WebDriver)
    By bchock in forum Sencha Touch 2.x: Q&A
    Replies: 0
    Last Post: 6 Aug 2012, 5:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •