Quick Testing SOAP Web Services with Bats ========================================= Bats is a lightweight testing framework for Bash and can be used as a simple alternative to GUI-based SOAP testing tools like Postman or SoapUI. It is useful for automated checks from the command line, CI systems, or cron jobs. Installation ------------ git clone https://github.com/bats-core/bats-core sudo ./bats-core/install.sh /usr/local Example Test ------------ #!/usr/bin/env bats setup() { ENDPOINT="https://mocus.dynv6.net/hello" } @test "helloVoid" { response=$(curl -s -X POST \ -H "Content-Type: text/xml" \ -H "SOAPAction: helloVoid" \ --data '' \ "$ENDPOINT") result=$(echo "$response" | \ xmllint --xpath "string(//return)" - \ 2>/dev/null) [[ "$result" = "Hello, world!" ]] } Run --- bats test.bats Why Bats? --------- - Minimal, no GUI - Works everywhere - Easy integration with CI or cron - Plain shell scripting