What is our primary use case?
In our development workflow, we use SpecFlow as a BDD framework to bridge the communication gap between business and development teams. We create Given-When-Then scenarios in plain language using Gherkin syntax, allowing easy collaboration with stakeholders. Under the hood, we implement these scenarios in C#, aligning with our .NET environment. Our use cases range from backend testing, making API calls, to mobile testing with APKs using APM Inspect or APM desktop. SpecFlow's ability to integrate seamlessly with our CI/CD pipeline ensures efficient testing and validation of both business and technical requirements.
How has it helped my organization?
SpecFlow enhances our organization by translating logical understanding into executable code in our C# environment. Similar to Cucumber in Java, it converts scenarios into callable methods, promoting collaboration and code interpretation. The framework's features, such as tagging and data segregation, provide flexibility and reusability without altering the core code. This allows us to efficiently run tests in different environments with varying data sets, streamlining our testing process.
What is most valuable?
One of the most valuable features of SpecFlow for us is its risk identification capabilities. This is particularly helpful for business development, managers, and product teams. We can tag risks in the requirement phase, even if user stories are distributed across different teams. This way, we can easily identify and concentrate on high-priority test cases, making it seamless for various teams to collaborate on risk assessment and validation.
What needs improvement?
In terms of improvement, SpecFlow's installation and configuration can be a bit challenging due to its flexibility as an open-source tool. While it offers a balanced flexibility, setting it up might require more effort compared to some licensed products that handle everything. However, SpecFlow is a framework, not an automation tool, so the actual automation is carried out through tools like Selenium. Despite setup complexities, the framework itself serves its purpose effectively. In future releases of SpecFlow, it would be beneficial to have some built-in methods for common actions like opening and closing browsers or implementing loops. Having predefined libraries for these functions would save automation engineers time and make the framework more user-friendly. While I'm not sure if such features already exist, they could be valuable, especially for those working on web applications. It would provide a generic and optimized solution that anyone can easily implement without worrying about performance issues.
For how long have I used the solution?
I have been working with SpecFlow for over a year.
What do I think about the stability of the solution?
I would rate the stability of SpecFlow as a solid ten out of ten.
What do I think about the scalability of the solution?
SpecFlow is generally well-regarded for its scalability. Many users find it effective, although there is feedback about the time it takes to structure tests using the Given-When-Then format. Converting logical validations into SpecFlow scenarios can be time-consuming, especially for manual testers. I would rate SpecFlow's scalability as moderate. While it can increase capacity and functionalities based on demands, the effort required to structure tests using the Given-When-Then format can be significant, especially for complex projects. The process of converting requirements into human-readable Given-When-Then scenarios, while essential for understanding code, can pose challenges in maintaining traceability. Reviewing automated tests involves going through both the requirements and the breakdown into SpecFlow, adding a layer of complexity. In our company, three or four users, primarily developers, are currently using SpecFlow. SpecFlow is heavily used in our projects, running daily behind each release during the build phase.
Which solution did I use previously and why did I switch?
Before SpecFlow, we primarily used Selenium. SpecFlow simplifies the communication between code and functionality, making it more accessible to a broader audience.
How was the initial setup?
Unlike some licensed tools that provide a straightforward installation process, open-source tools often require more manual configuration and may lack a predefined folder structure, making it a bit more involved. If SpecFlow includes a well-defined folder structure in future releases, it could simplify the setup process.
Which other solutions did I evaluate?
We explored other options but SpecFlow was chosen because it helps translate complex requirements, especially those involving risks in invoices, into human-readable language. The decision was likely influenced by the need for clarity in understanding and validating requirements quickly, which SpecFlow facilitates by sitting on top of the automation code.
What other advice do I have?
I would recommend SpecFlow to anyone who wants a clear understanding of the logical flow in their automation. It is beneficial for comprehending how things work. Overall, I would rate it as an eight out of ten.
Which deployment model are you using for this solution?
On-premises