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.
Sahi Best Practices for Large Projects
For large projects that will require complex tests and involve teams of people in the creation of the tests, can community members suggest any best practices in the design of the Sahi test architecture to maximize code reuse and the maintainability of the test code? Are there any pitfalls to avoid?
Your experiences and wisdom would be appreciated.
Mike.
Your experiences and wisdom would be appreciated.
Mike.
Comments
Second, organize your scripts into some type of logical hierachy. We use the concept of Suites, Scenarios, and Test Flows. A suite can map to multiple scenarios. A scenario can map to multiple test flows. The test flows are effectively reusable components for scenarios. Along these same lines, we associate data with Scenarios and elements with test flows.
Third, consider different data/element repository formats. We use a series of different CSV formats to handle different types of raw data and different types of testing.
Fourth, convention and standards. Impose strict naming/coding standards for your team. Don't allow deviation. Long term maintenance is a must for successful automation. Be verbose and use self describing function names, variable names, etc. There are many good articles, books, blogs, and code that talk about the importance of this topic.
Fifth, create a custom results reporter. The Sahi log is good, but isn't practical if all you want is the result for each suite, scenario, and test flow.
RESULTS FILE CONTENTS:
The decision to use XML fragments is based on the idea that whether or not the test run completed, failure that resulted in abnormal termination, or the user stopped playback - the XML fragment will be still contain a valid fragment. I have seen other automation tools log/report in XML, but if some type of premature end of the run occurred, the XML was corrupted because it couldn't properly close all XML tags. HP's QTP is really good at corrupting the results.
Today I took some inspiration from this thread and some time to write down my thoughs on Sahi. I would really appreciate if you would have a look at my post and leave a comment about what I might see wrong, what items I should add and so on.
http://wiredworm.blogspot.de/2012/04/checklist-automate-tests-with-sahi.html
It is pretty unstructured an will be improved as I get more input and some insight, how someone without any Sahi experience would set up Sahi for testing a huge application with a large QA team involved.
When the post reaches a certain quality, I will link it from the Customer Stories and Testimonials area.