Oeeng.IntegrationTesting is a C# project designed to facilitate integration testing for user interface automation. It provides tools to record and replay user interactions with applications, enabling automated testing scenarios.
- UI Automation Recorder: Capture user interactions with applications to create reproducible test scripts.
- Playback Functionality: Replay recorded actions to validate application behavior.
- Integration with FlaUI: Utilize the FlaUI library for robust UI automation across various application types.
- .NET Framework 4.7.2 or higher
- Visual Studio 2019 or later
- FlaUI library
-
Clone the Repository:
git clone https://github.com/OezdemirEngineering/Oeeng.IntegrationTesting.git
-
Open the Solution:
Open
Tests.slnin Visual Studio. -
Restore NuGet Packages:
Ensure all necessary NuGet packages are restored.
-
Build the Solution:
Build the solution to resolve dependencies and compile the projects.
-
Run the Application:
Set
UiAutomationRecorderas the startup project and run the application.
-
Recording Actions:
- Launch the
UiAutomationRecorderapplication. - Select the target application from the list of running processes.
- Click "Attach" to connect to the selected application.
- Click "Start Recording" to begin capturing user interactions.
- Perform the desired actions in the target application.
- Click "Stop Recording" to end the session.
- Save the recorded actions to a JSON file when prompted.
- Launch the
-
Loading and Running Scripts:
- Click "Load Actions" to import a previously saved JSON script.
- Review the loaded actions in the list view.
- Click "Run" to execute the loaded actions on the attached application.
- Use "Stop Execution" to halt the playback if necessary.
- Accessor.Base: Contains base classes and methods for interacting with UI elements.
- Login: Includes functionality related to user authentication scenarios.
- Tests: Houses test cases and related resources.
- UiAutomationRecorder: The main application for recording and replaying user interactions.
Contributions are welcome! Please fork the repository and create a pull request with your enhancements or bug fixes.
This project is licensed under the MIT License. See the LICENSE file for more details.
Special thanks to the developers of FlaUI for providing a comprehensive UI automation library.
For more information, visit the Oeeng.IntegrationTesting GitHub repository.