Get help with testing, discuss unit testing strategies etc.


Post by sqatester123 »

Hello,

I am trying to set the waitForTimeout in a test case but it doesn't seem to want to go higher than 30s.

Here is an example step...
    test.it("Starting step 1...", function(sub_test) {
        sub_test.waitForTimeout = 60000;
        sub_test.chain({
            action: "type",
            target: "input[name=j_username]",
            text: "test"
        });
    });
If I set the waitForTimeout to 10000ms it will show that it failed to load the page in 10000ms, but if I set it to 60000ms it will say that it failed to load the page in 30000ms.

Is there another way to specify the waitForTimeout?

Post by nickolay »

Hi,

This one specific moment in the API - there's also "subTestTimeout" setting, which is applied to every "t.it()" or "t.describe()" section. That is - such sections are expected to complete withing "subTestTimeout" time, otherwise they are finalized forcefully. So you'll need to also set the "subTestTimeout" to the value which is bigger than 60000 (probably much bigger, since its a total time for a sub test).

We'll try to fix this behavior in the future releases.

Post Reply