This is a C# framework for test automation using Selenium, RestSharp, and SpecFlow. The framework is designed to support web UI and API automation testing. Configuration of test data can be done by editing the appsettings.json
file.
- Chrome
- Firefox
- Edge
Note: Test automation should use the latest versions of the browsers.
To configure the browser for your tests, modify the Demo1CrmScenarios.feature
file. Use one of the available values for the @Browser
tag, for example:
#@Browser:Firefox
#@Browser:Edge
@Browser:Chrome
Scenario: Scenario 1 - create contact
# Summary: This scenario verifies the process of creating a new contact on the 1CRM demo page.
After the completion of tests, a report is generated under the /TestResults
directory. In case any test fails, a detailed report containing a screenshot of the step where the error occurred is created.
- Clone the repository:
git clone https://github.com/TMajdan/Selenium_Specflow.git
- Configure test data in
appsettings.json
if needed. - Run tests using your preferred test runner.
- Selenium
- RestSharp
- SpecFlow
Feel free to contribute by creating issues or submitting pull requests.