18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Poor performance while playing back Iframe test cases

srvnsrvn Members
edited November -1 in Sahi - Open Source
I am testing an application which is built mostly using Iframes. The navigation links are designed using regular web pages. When the user click on any link, further web pages are loaded within an Iframe.

The recorder records the actions while navigating through the web page including the test elements within Iframe. During test case playback, the test actions recorded in normal web pages are executed without time delaly. But when Sahi executes the test steps which belongs to the controls in iFrame, the execution time for each such step is atleast 1 minuite. If a web page contains 10 controls, then it takes at least 10 minuites to execute one test case. Is there any way to speed up this?

Thanks.

Comments

  • narayannarayan Administrators
    Do the iframes do any polling activity, may be using iframes or comet? Looks like Sahi is waiting for some network activity to stop. Are these iframes from the same domain?
  • Iframes does not perform any polling kind of activities. Also, I am testing an applications running in my laptop, which completely access only local domains. The page I tested was a User registration page, which captures user details and store in the local database. Find below the test script

    _include("Login.sah");

    function createNewUser()
    {
    _click(_cell("Manage Users"));
    _click(_button("New"));
    _setValue(_textbox("login_name"), $loginName);
    _setValue(_textbox("fname"), $firstName);
    _setValue(_textbox("lname"), $lastName);
    _setValue(_textbox("emp_code"), $employeeCode);
    _setSelected(_select("usr_location"), $userLocation);
    _setSelected(_select("usr_group"), $userGroup);
    _setSelected(_select("availability"), $availability);
    _setValue(_textbox("email"), $emailId);
    _setValue(_password("password"), $password);
    _setValue(_password("confirm_pass"), $confirmPassword);
    _click(_button("Apply"));
    }

    createNewUser();

    In the above script, login page is developed without any Iframes. Hence user login process is executed immediately. When the user click on the "Manage Users" link, the users page is loaded in an Iframe. From that moment, all the remaining steps takes too much time to execute the test cases.
Sign In or Register to comment.