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.

How to prevent mistakes due to overuse?

travzillatravzilla Members
edited July 2013 in Sahi - Open Source
Maybe my question sounds confusing, let me explain. I had been working with Sahi on the last six months and currently I am building very big scripts to test a web application.

The problem here is in the last months I am noticing that Sahi skips some steps, my application requires to use a lot the DragDropXY function to move objects into a canvas, however, while the action is completed Sahi marks as complete this step and skips some of the next steps making sometimes my test to fail.

I realized that my test was very long and I decided to skip some validations, however, I want to leave this just to help me to find out how to improve the performance of Sahi.

Otherwise, is a very good automation.

I have another question but this will be in another theme.

Regards

Answers

  • Hi,
    Please try adding _wait(5000) after drag drop and then check again.
    Please let me know if this works for you.

    Regards.
  • Hi, sorry for the long delay, I tried to add time, but seems that the instruction is ignored and the sahi moves some steps ahead ignoring if they pass or not after a long streak of steps.

    This happens only when doing Drag and Drop and this worries me as long as my application focuses on this function to draw elements on canvas.
  • Hi travzilla,
    Can you provide your test script and test page?
    Also, I would suggest trying Sahi Pro. Let me know if you still face the same problem with Sahi Pro. Trial version for one month can be obtained from the following link:
    http://sahi.co.in/download-sahi-pro/
    
    Regards.
  • Getting an update on this issue, as long as the test data is property of my client I can not provide any data, but, the issue here is that sahi skip some steps when sahi reaches 250 steps in my tests. At this point, if a DragAndDrop action is performed, the next steps are done without validation and even the wait(500) that you suggested me is ignored.

    I tried even closing and reopening Sahi such to not avail.
Sign In or Register to comment.