Slowing Down Test Script Execution

Last edited on

Overview

There are multiple reasons for wanting to slow down test script execution:

Solution - Using waitUntilObjectReady() and waitUntilObjectItemReady()

JavaScript

function main()
{
    startApplication("addressbook");

    ...
}

function waitUntilObjectReady(obj)
{
    snooze(1);
}

function waitUntilObjectItemReady(obj)
{
    snooze(1);
}
test.js

Python

def main():
    startApplication("...")

    ...

def waitUntilObjectReady(obj):
    snooze(1)
 
def waitUntilObjectItemReady(obj):
    snooze(1)
test.py