This project uses WebdriverIO and JavaScript to automate the testing of Obot.ai, an AI-driven chatbot platform. The automation suite includes tests for logging into the platform, creating and editing AI agents, managing tasks, and using tools like file uploads, task management, and message handling.
Before running the tests, make sure you have the following installed:
- Node.js (Version 14.x or higher)
- npm (Node package manager)
- Web browser (e.g., Chrome, etc.)
- ChromeDriver for WebDriver support in respective browsers.
- Run
npm installto install the necessary dependencies. - Run all tests with
npm run wdio:all.
Once you've installed the dependencies and set up your environment, you can run the tests as follows:
-
Run all tests: To run the entire automation test suite, execute:
npm run wdio:all
-
Run a specific test: If you want to run a specific scenario or feature, use:
npm run wdio:byScenario --spec src/features/obot.feature:10
Replace
10with the line number of the scenario you want to execute. -
Run in headless mode (useful for CI/CD): You can run the tests in headless mode (without opening the browser window) by configuring the
wdio.conf.tsfile to enable headless execution, and then run the tests with:npm run wdio:all
-
View results: After the tests are executed, you can review the results in the console or check the generated Allure reports if they are configured.
This test suite is designed to work with WebDriverIO and Cucumber for behavior-driven testing. The tests validate user interactions with the Obot.ai platform, such as logging in, creating AI agents, managing tasks, and using different tools integrated into the platform.
If you would like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch). - Make your changes and commit them (
git commit -m 'Add new feature'). - Push to the branch (
git push origin feature-branch). - Create a new Pull Request.