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.

Log file result issue

NagarajNagaraj Members
edited November -1 in Sahi - Open Source
Hi all,

In my application i have add the employee by three employee number number series a)Manual entry b)Permanent employee c) Temporary employee. I have three sahi script for different employee series and parametrization is done by using excel and txt file file, each employee series have 3 inputs that means total will be 9.After running these script in batch mode Log file result shows assertation passed even if the input is wrong and my assertation will be "_assertExists(_span("Employee Added successfully"));".Please help me some one to resolve the issue



Regards
Nagaraj

Comments

  • narayannarayan Administrators
    Looks like the span is always there, but hidden from view. Try
    _assertTrue(_isVisible(_span("Employee Added successfully")));
    so that you are explicitly testing for visibility.
  • NagarajNagaraj Members
    edited November 2009
    i have tried with your code "_assertTrue(_isVisible(_span("Employee Added successfully")));" but it is not working.Once click on the Add employee button pop up window will open say "Employee Added Successfully" with Ok button.
  • Can anybody help me regarding this issue.


    Regards
    Nagaraj
  • narayannarayan Administrators
    Nagaraj,

    Is the script working when executing via controller?
  • Yes....three scripts are executing in batch mode.....i can share those script if required
  • narayannarayan Administrators
    Nagaraj,

    1) Are the scripts working when executed one by one via controller?
    2) Does this error occur only in batch mode?
    3) Are you running the scripts in multithreaded mode (one or more browser windows opening simultaneously) or sequentially?
    4) Have you watched what is happening on the browser during those assertions? Do you notice anything strange?
  • 1)Yes script are executing and the result file is fine for one by one case
    2)Yes
    3)Yes...by using _include command
    4)If the Employee added successfully it will pop up a message "Employee Added Successfull" with Ok button this one am checking, but the wrong case also it will pop up message say for duplicate case it will say "Employee number already assigned to another employee" with Ok button.These cases will work fine in the browser only problem with Log file.


    and one more problem in excel am facing is if i give the Mandatory filed as blank in excel while running it will take it as "null".
  • narayannarayan Administrators
    Nagaraj,

    Definitely looks like a problem in the script. Could you email me the scripts?
    Also, instead of using _include to run the scripts, try running via a suite file.
    The problem seems to be due to some variables being reused incorrectly.
Sign In or Register to comment.