Sencha Test is a framework for unit and end-to-end testing of Ext JS apps.
Questions tagged [sencha-test]
16 questions
2
votes
0 answers
Connection error while trying to run multiple test scenarios via Selenium Grid
I've created a Selenium grid with 5 nodes connected to the hub. Then I tried to run multiple Sencha Test scenarios through the hub. The test run started and after few minutes the tests stopped with errors shown below:
Failed with error "connect…

Anand Maheswar
- 75
- 1
- 7
1
vote
1 answer
How can we get selectOnFocus: true functionality in Ext JS 6.6 Modern toolkit?
Ext JS 6.6
Classic toolkit, a textfield has selectOnFocus: true/false so the data in the text field is all selected when the component obtains focus
items: [{
xtype: 'textfield',
selectOnFocus: true
}]
Modern toolkit does not have this…

aallord
- 357
- 1
- 12
1
vote
2 answers
How to select an item from a combobox in Senchat Test
Is there a way to select an item from a combobox without having the actual value of the item ?
Lets say we have a combo with Oranges, Apples and Lemons and the actual value of these items are keys that we don't know is there a way to do select by…

code4jhon
- 5,725
- 9
- 40
- 60
1
vote
1 answer
Error using hasCls within an expect in Sencha Test
Sencha Test 2.1
Is there a bug regarding the use of hasCls within an expect?
Lets say I have something like:
this.component().gotoButton('[text=See]').gotoComponent('menucheckitem[text=some text]')
.and(function (el) {
…

code4jhon
- 5,725
- 9
- 40
- 60
1
vote
1 answer
How to check a checkmenuitem in Sencha Test
Using Sencha Test 2.1
So I'm trying to check a checkboxmenuitem which is an item in a button menu.
I can reference it but the method check is not availble for…

code4jhon
- 5,725
- 9
- 40
- 60
1
vote
1 answer
Reference a combobox within a grid row using Sencha Test
Reference a combobox within a grid row using Sencha Test.
Given something like:
{
text: "Select one",
width: 110,
editor: {
field: {
xtype: 'combobox',
…

code4jhon
- 5,725
- 9
- 40
- 60
1
vote
1 answer
Running all test scenarios with Sencha Test CLI
With Sencha Test I created some test scenarios and asking myself, whether it is possible to run several test scenarios via CLI on Windows command. I know that I can run a specific scenario with stc run -p Embedded within the scenario's folder or stc…

actc
- 672
- 1
- 9
- 23
0
votes
0 answers
How are functions with promised returns and passed values correctly executed in sequence?
The code is part of a script for automated testing with the sencha test software which is based on selenium and jasmine and while the goal should be straight forward enough it proved to be quite difficult to get right. The code looks like…

Xen
- 115
- 8
0
votes
0 answers
Sencha WebtestIt - browser launch url 'data:,'?
I have setup a simple test using Sencha Webtestit. When I run the test, it launches a browser but the url is always - 'data:,' which is not what I put in the test. No matter what I do, the result is the same. Any idea would be appreciated.

Joe Kuan
- 119
- 1
- 3
0
votes
1 answer
Extract grid's records into an object
Say I have a grid and want to extract its records.
let record = {};
grid.rowAt(rowIndex)
.cellAt(cellIndex)
.focus()
.get('innerText')
.and(function (future) {
record.columnName = future.data.innerText;
});
How can I…

freightgateone
- 5
- 2
0
votes
1 answer
Method to clear pre-filled data of a ST.future.Component
Is there a way to clear an input field while using the ST.component("locator"); API?
Using ST.component("locator").setValue(""); results in the following error:
TypeError: ST.component(...).setValue is not a function...
PS: Is the old forum now…

freightgateone
- 5
- 2
0
votes
1 answer
Passing additional parameters to execute function in Sencha Test
Is there a way to pass additional parameters to an execute function in Sencha Test? In a web driver scenario a closure is not an option. http://docs.sencha.com/sencha_test/2.1.1/api/ST.html#method-execute
Take for example:
selectColumn: function ()…

code4jhon
- 5,725
- 9
- 40
- 60
0
votes
1 answer
Reference a combobox within a grid with a cell editing plugin in Sencha Test (without global search)
Given there is a Grid using a cell editing plugin is there a way to reference a combobox editor without doing it in a global way ?
I have this working:
this.grid().rowAt(0).cellAt(0).click(); // click to show the combo
…

code4jhon
- 5,725
- 9
- 40
- 60
0
votes
1 answer
Double click a row in Sencha Test
How to double click a grid row using Sencha Test Framework ?
So far I'm able to reference the row and execute a click but I don't see a way to perform a double click (doing a click 2 times doesn't work either as a double…

code4jhon
- 5,725
- 9
- 40
- 60
0
votes
2 answers
Sencha Test validate content of MessageBox
Does someone know how can you validate the text within a Messagebox using Sencha Test 2.1 ?
I'm successful in retrieving the actual messagebox like this:
ST.panel('messagebox').visible();
So I want to do something like:…

code4jhon
- 5,725
- 9
- 40
- 60