Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/altwalker/dotnet-executor
A .NET executor for AltWalker, a convenient programming interface for exposing and executing your C# tests within the AltWalker framework.
https://github.com/altwalker/dotnet-executor
altwalker csharp dotnet model-based-testing test-automation testing
Last synced: 3 days ago
JSON representation
A .NET executor for AltWalker, a convenient programming interface for exposing and executing your C# tests within the AltWalker framework.
- Host: GitHub
- URL: https://github.com/altwalker/dotnet-executor
- Owner: altwalker
- License: gpl-3.0
- Created: 2022-09-02T22:43:25.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-01T22:48:48.000Z (9 months ago)
- Last Synced: 2024-03-01T23:37:33.073Z (9 months ago)
- Topics: altwalker, csharp, dotnet, model-based-testing, test-automation, testing
- Language: C#
- Homepage: https://www.nuget.org/packages/AltWalker.Executor
- Size: 55.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# .NET Executor for AltWalker
The .NET Executor provides a programming interface for exposing and executing your C# tests with AltWalker, to use the .NET Executor you need to create a console application and run the `ExecutorService` to expose your tests to AltWalker.
Use `Altwalker.Executor` to execute your .NET tests with AltWalker. Follow [AltWalker C# Quickstart](https://altwalker.github.io/altwalker/quickstart.html) tutorial to get started.
Read the full documentation on https://altwalker.github.io/altwalker.
## Usage
You need to create a console application and run the `ExecutorService` to expose your tests to AltWalker.
Your console application needs to have a `Main` that registers your models and starts the executor service:
```c#
public class Program {public static void Main(string[] args) {
ExecutorService service = new ExecutorService();// You need to register every model
service.RegisterModel();
service.RegisterSetup();// Start the executor service
service.Run(args);
}
}
```For a more detailed example you can check the example from `AltwalkerExecutor.Example/`.
## Setting Up a Development Environment
### Run Tests
```
$ dotnet test AltwalkerExecutor.Tests/
```### Run the service locally
To start the web service locally run:
```
$ dotnet run --project path/to/project.csproj --server.urls=http://localhost:5000
```You can start the web server with the example from `AltwalkerExecutor.Exampele/`:
```
$ dotnet run --project AltwalkerExecutor.Example/altwalkerexecutor.example.csproj --server.urls=http://localhost:5000
```You can run the following commands to check that the service started:
```
$ curl -sv http://localhost:5000/altwalker/hasModel?name=WalletModel
``````
$ curl -sv http://localhost:5000/altwalker/hasStep?modelName=WalletModel&name=setUpModel
```## Support
Join our [Gitter chat room](https://gitter.im/altwalker/community) or our [Google Group](https://groups.google.com/g/altwalker) to chat with us or with other members of the community.
## License
This project is licensed under the [GNU General Public License v3.0](LICENSE).