PDA

View Full Version : Sencha test 2.2 firefox is crashing and not starting to execute tests



izopi4a
4 Oct 2018, 6:22 AM
When I try to run my tests in seleneium hub, firefox i get this error, while in chrome is working fine

senchaTest run -s test/topki -p "pool1"
Sencha Test v2.2.0.148
[INFO] Proxy Server open on port 8000
[AGENT: 1] Launching agent
[INFO] [model/browser/SandboxBrowser-8] [INFO] [process/ElectronSandboxProcess] Sandbox process running
[INFO] [model/browser/SandboxBrowser-8] [INFO] Initializing Sencha Test sandbox
[INFO] [model/browser/SandboxBrowser-8] [INFO] Loading Sencha Test core passed: 0 ┊ failed: 0 ┊
[INFO] [model/browser/SandboxBrowser-8] [INFO] Loading test framework
[INFO] [model/browser/SandboxBrowser-8] [INFO] Loading scenario libraries
[INFO] [model/browser/SandboxBrowser-8] [INFO] Loading page objects
[INFO] [model/browser/SandboxBrowser-8] [INFO] Loading test suites
[INFO] [model/browser/SandboxBrowser-8] [INFO] Loaded /home/kur/sencha_test/myapp/test/topki/easy.js
[INFO] [model/browser/SandboxBrowser-8] [INFO] Sandbox initialized
[AGENT: 1] Agent registered: firefox - Firefox
[ERROR] [model/browser/SandboxBrowser-8] [ERROR] [orion] Error: The arguments passed to a command are either invalid or malformed.
at url("http://kur.local/test1/") - WebDriver.js:125:18tests: 0 ┊ passed: 0 ┊ failed: 0 ┊
at timeouts("script", 10000) - WebDriver.js:124:18
at init() - WebDriver.js:119:18
[AGENT: 1] System error:


Error: The arguments passed to a command are either invalid or malformed.
at url("http://kur.local/test1/") - WebDriver.js:125:18
at timeouts("script", 10000) - WebDriver.js:124:18
at init() - WebDriver.js:119:18
[ERROR] [model/browser/SandboxBrowser-8] [ERROR] {"isTrusted":true}...
[AGENT: 1] System error:ogress: [----------] 0.00 % ┊ tests: 0 ┊ passed: 0 ┊ failed: 1 ┊


TypeError: Cannot read property 'error' of null
at Request._callback (/home/kur/Sencha/Test/2_2_0_148/resources/app.asar/node_modules/orion-core/node_modules/webdriverio/build/lib/utils/RequestHandler.js:269:113)
at Request.self.callback (/home/kur/Sencha/Test/2_2_0_148/resources/app.asar/node_modules/orion-core/node_modules/webdriverio/node_modules/request/request.js:188:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request.<anonymous> (/home/kur/Sencha/Test/2_2_0_148/resources/app.asar/node_modules/orion-core/node_modules/webdriverio/node_modules/request/request.js:1171:10)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at IncomingMessage.<anonymous> (/home/kur/Sencha/Test/2_2_0_148/resources/app.asar/node_modules/orion-core/node_modules/webdriverio/node_modules/request/request.js:1091:12)
at IncomingMessage.g (events.js:286:16)
at emitNone (events.js:91:20)
[WARN] [model/test/SandboxAgent] agent.terminate() called multiple times.

here is my pool1.json file

[
{
"browserName": "firefox",
"sencha": {
"concurrency": 1
}
}
]



here if I swap to chrome, tests are starting to be exeuted

easy.js has this

describe("easy.js", function() {
it("should pass", function() {
expect(1).toBe(1);

ST.wait(6999);
});
});




workspace.json

"tests": {
"browser": {
"farms": [
{
"name": "Generic WebDriver1",
"type": "generic",
"port": 4444,
"host": "kur.local",
"sessionLimit": 1,
"accessKey": "",
"pools": [
{
"name": "pool1",
"path": "pool1.json"
}
]
}
]
},



and my selenium hub

version: "3"
services:
selenium-hub:
image: selenium/hub:latest
container_name: selenium-hub
ports:
- "4444:4444"
environment:
- GRID_DEBUG=true
extra_hosts:
- "kur.local:192.168.25.28"
chrome:
image: selenium/node-chrome:latest
depends_on:
- selenium-hub
environment:
- HUB_HOST=selenium-hub
- HUB_PORT=4444
extra_hosts:
- "kur.local:192.168.25.28"
firefox:
image: selenium/node-firefox:latest
depends_on:
- selenium-hub
environment:
- HUB_HOST=selenium-hub
- HUB_PORT=4444
extra_hosts:
- "kur.local:192.168.25.28"

Forum_Adm
7 Oct 2018, 6:31 AM
Thank you so much for bringing this to our attention. I am sorry for the trouble. I have sent this to support to look into and they will get back with you regarding this. We appreciate your patience.

Michele

daniel.gallo
8 Oct 2018, 9:37 AM
Please see this forum response about Firefox and Selenium Server compatibility: https://www.sencha.com/forum/showthread.php?348012-How-do-I-use-Firefox-for-testing-using-ST&p=1189430&viewfull=1#post1189430. You may need to use an older version of Firefox, along with Selenium Server 2.x.