https://github.com/lzinga/scriptjunkie
It allows you to run many scripts/executables through one program and check expected exit code results.
https://github.com/lzinga/scriptjunkie
Last synced: about 2 months ago
JSON representation
It allows you to run many scripts/executables through one program and check expected exit code results.
- Host: GitHub
- URL: https://github.com/lzinga/scriptjunkie
- Owner: lzinga
- License: isc
- Created: 2016-01-03T18:35:18.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-16T03:01:49.000Z (over 10 years ago)
- Last Synced: 2025-03-12T15:33:08.313Z (over 1 year ago)
- Language: C#
- Homepage:
- Size: 59.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ScriptJunkie [](https://ci.appveyor.com/project/lzinga/scriptjunkie/branch/master)
**What is ScriptJunkie?**
It allows you to run many scripts/executables through one program and check expected exit code results.
# Usage
```csharp
// Will run ScriptJunkie against the scripts.xml file.
ScriptJunkie.exe /XmlPath="C:/Temp/scripts.xml"
// Will pause ScriptJunkie at the start allowing attachment of debugger.
ScriptJunkie.exe /Debug
// Will genereate a template xml that ScriptJunkie can accept.
ScriptJunkie.exe /XmlTemplatePath="C:/Temp/Template.xml"
```
# Template Xml
```xml
www.blank.com/nothing.ps1
C:/Temp/Downloads/nothing.ps1
www.blank.com/nothing.zip
C:/Temp/Downloads/nothing.zip
C:/Temp/Downloads/ExtractedFiles
<Executable Path="C:/Temp/nothing.ps1" />
<Arguments>
<Argument Key="-i" Value="C:/Temp/something.bin" />
<Argument Key="-x" Value="" />
</Arguments>
<ExitCodes>
<ExitCode Value="0" Message="Files deleted" IsSuccess="true" />
<ExitCode Value="1" Message="Files failed to delete" IsSuccess="false" />
<ExitCode Value="2" Message="Couldn't find any files" IsSuccess="false" />
</ExitCodes>
```
##### Exit Code Info
```xml
```
The above xml allows the program to determine what kind of exit codes are expected. It also determines which ones count as a pass of the program being ran. So in the above program doesn't get an exit code where the ` it will cause ScriptJunkie to exit with exit code 1. If all programs exit with a successfull exit code ScriptJunkie will exit with a 0.
1. The "Value" attribute is the exit code.
2. The "Message" is displayed in the execution process of ScriptJunkie.
# Tested File Types
##### Downloads
All files should download correctly as long as the url is a direct link to the file.
##### Execution File Type
1. ***Powershell (.ps1)*** - Unit Test Verification
2. ***Executable (.exe)*** - If requires admin privileges run ScriptJunkie as administrator.
##### Not Implemented
1. ***Archive (.zip/.rar)***
# Known Issues
1. As this is still being worked on I haven't tested it with everything so some things might not work properly. If you find a problem please open an issue.