#!/bin/bash

rm -f test.log
for i in `seq 1`; do
    sed s/id_of_transaction/$i/ request.xml > _request.xml
    echo $i
    if ! curl --data-binary @_request.xml http://localhost:8190/bug327/ | xmllint -format - | tee -a test.log | grep 'Ala like it' & then
        echo Something went wrong
    fi
done

