PDA

View Full Version : Sencha Test 2.0.0.287 : How to see the failure reason ?



TABen
15 Nov 2016, 9:08 AM
Used the Event Recorder to record a simple test that logged into to an application, and navigated through two layers of a hierarchy
ST.play([
{ type: "tap", target: "component[itemId="loginAsUserLink"]", x: 95, y: 13 },
{ type: "type", target: "textfield[name="user_name"] => input", text: "", caret: 0 },
{ type: "keydown", target: "textfield[name="user_name"] => input", key: "Tab", caret: 5 },
{ type: "keyup", target: "textfield[name="login_password"] => input", key: "Tab", caret: 0 },
{ type: "type", target: "textfield[name="login_password"] => input", text: "", caret: 0 },
{ type: "type", target: "textfield[name="login_password"] => input", text: "", caret: 3 },
{ type: "tap", target: "button[itemId="loginBtn"]", x: 119, y: 29 },
{ type: "tap", target: "glass-base-view-appmanager-categories => [data-recordindex="11"]", x: 54, y: 67 },
{ type: "mousedown", target: "glass-base-view-appmanager-apps[reference="appView"] => [data-recordindex="4"]", x: 24, y: 10, detail: 1 },
{ type: "mouseup", target: "glass-base-view-appmanager-apps[reference="appView"] => [data-recordindex="4"]", x: 24, y: 67, detail: 1 },
{ type: "click", target: "glass-base-view-appmanager-apps[reference="appView"] => [data-recordindex="4"]", x: 24, y: 67, detail: 1 }


The (Chrome) browser window shut after the first selection of "glass-base-view-appmanager-categories", and the Unit Tests tab showed a single red "1". However nothing is logged to the Log panel, and double clicking on the failure count does nothing. Should I be running the test in Debug mode until it is stable ?

vojtech.cerveny
16 Nov 2016, 1:29 AM
Hi TABen!
Thanks for reports what you filled!

Debug mode and normal run - differences is that Debug mode stops on key word "debugger" in code, so you can see variables, go step by step in code etc. Normal run ignores "debugger" and just run a test. So if you haven't this word in code, it is better execute Normal run. Is it clearer?

And for showing a error message, you need open node and then click on red cross ( X ) and then ST shows you error.

Feel free to contact me any time
Vojtěch Červený