Results 1 to 2 of 2

Thread: Test Runner speed?

  1. #1
    Sencha Premium Member
    Join Date
    Sep 2014
    Location
    New Jersey
    Posts
    165
    Answers
    11

    Default Test Runner speed?

    Hello,

    I'm evaluating Sencha Test and I have a test suite with 5 short unit tests inside. I'm looking to demo this and while tests are super small and quick, I was wondering if there was a way to set the speed of the Test Runner. When I run the Test Runner, one of my tests clicks a button and opens a window and then clicks the cancel button of that window. It succeeds and while this is great, I need to slow down the speed so I can show this to other people of my team.

    Is this possible?

    Thanks.

  2. #2
    Sencha - Sales Team daniel.gallo's Avatar
    Join Date
    Apr 2009
    Location
    Redwood City, CA
    Posts
    302
    Answers
    41

    Default

    You would need to leverage the "wait" API between the two button clicks, and this would allow you to see the window before it gets closed by the second button click. Something like this:

    Code:
    ST.button('firstbutton')
        .click()
        .wait(2000);  // Wait 2 seconds after clicking first button
        
    ST.button('secondbutton')
        .click();
    Daniel Gallo
    Senior Solutions Architect
    Sencha Inc.

Posting Permissions

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