Results 1 to 6 of 6

Thread: Sencha Test Trial - can only run one test at a time ??

  1. #1
    Sencha Premium User
    Join Date
    Sep 2010
    Location
    UK
    Posts
    125
    Vote Rating
    6
      0  

    Default Answered: Sencha Test Trial - can only run one test at a time ??

    I am evaluating Sencha Test Trial.

    I notice that it won't run all the tests. Is this a trial limitation?

    screen.png

    If I click the 'Login.js', it won't automatically click all the associating tests. When I click 'Run', it only play the first test.

    Even if I manually click on each test, it still only runs the first test.

    If I click on the second test only, it will run it. Just not more than one.

  2. Does the "NeOne.logout()" cause a page redirection? If so, please note that In-Browser scenarios do not supported page navigation, and are designed for running tests on single page apps. Reason being is page navigation causes the browser to redirect away from the Sencha Test proxied version of the app (the app is proxied so that all test suites, test runner, etc. can be injected in to the page). If a page navigation occurs, the tests will end.

    Physical page navigation can only be achieved when the scenario type is set to WebDriver - where the tests run separately from the browser. Please note that WebDriver tests limit you to use of the "ST." APIs, due to tests not running side-by-side with the app in the browser.

  3. #2
    Sencha - Sales Team daniel.gallo's Avatar
    Join Date
    Apr 2009
    Location
    Redwood City, CA
    Posts
    253
    Answers
    32
    Vote Rating
    31
      0  

    Default

    Are you able to share the contents of your test suite file, so I can verify the structure?

    Thanks.
    Daniel Gallo
    Senior Solutions Architect
    Sencha Inc.

  4. #3
    Sencha Premium User
    Join Date
    Sep 2010
    Location
    UK
    Posts
    125
    Vote Rating
    6
      0  

    Default

    Thanks for the quick reply.

    Code:
    describe("Login", () => {
        beforeEach(() => {
            Ext.util.Cookies.clear('sid');
        });
    
    
        afterEach(function () {
            NeOne.logout();
        });
    
    
        it("as admin - check title", function () {
            ST.field('#username', 10000).setValue('admin');
            ST.field('#password').setValue('admin');
            ST.field('#login').click();
            ST.component('#mainview', 7000);
            ST.component('#leftPanel', 7000).and(
                function(panel) {
                    expect(panel.getTitle()).toBe('admin');    
            });
        });
        
        it("invalid password", function () {
            ST.field('#username', 10000).setValue('abc123');
            ST.field('#password').setValue('xyz123');
            ST.field('#login').click();
            ST.component('panel[title=Login Error]', 1000);
        });
    
    
        it('with empty password', function() {
            ST.field('#username', 10000).setValue('');
            ST.field('#password').setValue('');
            ST.field('#login').click();
        });    
    });

  5. #4
    Sencha - Sales Team daniel.gallo's Avatar
    Join Date
    Apr 2009
    Location
    Redwood City, CA
    Posts
    253
    Answers
    32
    Vote Rating
    31
      0  

    Default

    Does the "NeOne.logout()" cause a page redirection? If so, please note that In-Browser scenarios do not supported page navigation, and are designed for running tests on single page apps. Reason being is page navigation causes the browser to redirect away from the Sencha Test proxied version of the app (the app is proxied so that all test suites, test runner, etc. can be injected in to the page). If a page navigation occurs, the tests will end.

    Physical page navigation can only be achieved when the scenario type is set to WebDriver - where the tests run separately from the browser. Please note that WebDriver tests limit you to use of the "ST." APIs, due to tests not running side-by-side with the app in the browser.
    Daniel Gallo
    Senior Solutions Architect
    Sencha Inc.

  6. #5
    Sencha Premium User
    Join Date
    Sep 2010
    Location
    UK
    Posts
    125
    Vote Rating
    6
      0  

    Default

    Yes, it involves page redirection. Thank you for pointing it out. I will change the implementation then.

  7. #6
    Sencha - Sales Team daniel.gallo's Avatar
    Join Date
    Apr 2009
    Location
    Redwood City, CA
    Posts
    253
    Answers
    32
    Vote Rating
    31
      0  

    Default

    You're welcome. There are some further details on page navigation, and use of the "ST.navigate" API, here: https://docs.sencha.com/sencha_test/..._url_apis.html.
    Daniel Gallo
    Senior Solutions Architect
    Sencha Inc.

Similar Threads

  1. Replies: 1
    Last Post: 3 Feb 2017, 8:59 AM
  2. Replies: 5
    Last Post: 2 Feb 2017, 8:42 AM
  3. Replies: 1
    Last Post: 9 Aug 2016, 3:46 AM
  4. Sencha Test trial version of 1.0.3 not working
    By bhartiTidake in forum Bugs
    Replies: 3
    Last Post: 5 Aug 2016, 12:06 AM
  5. Replies: 2
    Last Post: 4 Aug 2016, 4:27 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
  •