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.

Sahi limitations...

lepierrotlepierrot Members
edited November -1 in Sahi - Open Source
Hi,

I've got a simple question: what are the limitations of Sahi in terms of number of step in a script ? Maybe with the size of log file ?
Because I've ran a script that add new rows in an array, and verify if everything is correctly added and for small numbers of rows it works, but if I go after 150 or 200, the script crashes (with IE6, IE7 and mozilla firefox...)

An idea ?
:)

Comments

  • Can you post the error message?
  • The problem is that the RAM is sharply increasing and increasing again .. without stopping, and so sahi has to write on the swap, and the script crashes because there is a lack of virtual memory ...
    SO, no log file ... and no error, just script crash !
    It's happenning after a high number of steps ...
  • i think lepierrot is right... the larger the number of steps the bigger possibility it crashes...
  • StringyLowStringyLow Members
    edited June 2008
    Are your scripts using loops by chance?

    Specifically are you counting up the items in a table or something like that?
  • Yes I am, my script uses loops and counts the number of rows in an array, sets parameters in each row of the array..etc..
    Is there a problem with memory in that case?
  • Yes, I think there is a problem in the way the commands are constructed.
  • Great ... :(
  • StringyLowStringyLow Members
    edited June 2008
    The downside for now is that you have to keep your scripts small.

    I'm trying to get the source to compile so maybe I can do a private build of Sahi and make some fixes.
  • stringyLow, if you may have some fix for that... can you share it with us??

    Highly Appreciate it :)

    Thanks!
  • Same for me, My script is really small and I'm trying to keep on following this way, but there are loops...
    I've got to run some tests on a gateway setting page... so there are some arrays with the number of devices that are connected to this gateway. There can be 200 hundred gevices conencted, and I have to scan the array, to set parameters in each row of the array etc ... so I've got a loop that's processed 200 times and this for each type of instruction...
    Obviously, does sahi has been made for this ?
  • Sahi is pretty darn useful because of the built-in asserts.

    I would suggest also taking at look at AutoIT:

    http://www.autoitscript.com/
  • Thank you, I will take a look at it :)
  • Do you know if Sahi knows how to write in a file ?
    I want to find a solution to write in a file that is ever pre-written, do you understand what I mean ... :) ?

    In fact I have a software which I need to set to run some test with Sahi scripts.. And I'd like it to be set automatically when I set values in my Sahi script ...

    To sum it up, I'd like to run my Sahi script with my personnal values, and then that sahi write some results into a .ini configuration file of another software that is needed to go further with Sahi tests...then I launch my software and the parameters have been written by Sahi in the .ini file so that I don't need to set them again in this software ... do you think it's possible ? Maybe with AutoIt ?

    Regards
  • How much Sahi Support for Testing Web Base Applications?
  • Anybody can help me out to Install Sahi Tool?
    Is it Helpfull test the Client server application?
  • Sahi also has functionality to write to a file as well:
    http://sahi.co.in/w/_debugtofile

    AutoIT would definitely let you write to any kind of file.
    The main drawback of AutoIT is that it is Windows-only
  • Ok thank you !
Sign In or Register to comment.