18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
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.
Request for Enhancement : Save processed scripts for easier debugging
Scenario :
When there is an error the result html file points to a line that is not higher than the number of lines in the script.
When I look at the log file, it looks like Sahi processes the script by replacing the _include directives with the actual content and some other processing and the line numbers seem to point to the lines in this processed script.
I normally run the tests through ant and clicking on the error links does not go anywhere. I can however see the line number.
It would be useful if each processed script are written to disk( e.g. script.sah to processed-script.sah in a processed-scripts directory or something like that. )
It helps look at the line number causing the error more easily.
When there is an error the result html file points to a line that is not higher than the number of lines in the script.
When I look at the log file, it looks like Sahi processes the script by replacing the _include directives with the actual content and some other processing and the line numbers seem to point to the lines in this processed script.
I normally run the tests through ant and clicking on the error links does not go anywhere. I can however see the line number.
It would be useful if each processed script are written to disk( e.g. script.sah to processed-script.sah in a processed-scripts directory or something like that. )
It helps look at the line number causing the error more easily.
Comments
We should either do this, or make sure the line number points to the correct file and line. Will update you when we address this.
Regards,
Narayan