Forum Discussion

John654321's avatar
John654321
Occasional Contributor
7 years ago
Solved

Check whether existing batch running

Scenario 1

1) user runs testrunner.bat using command line. It takes 5 hours for the testing to complete

2) task scheduler starts a new instance of testrunner.bat

 

will testrunner.bat crash? Will it continue to run the user’s testrunner or will it cancel user’s run?

 

scenario 2 

1) userA runs testrunner.bat

2) userB runs another testrunner.bat on the same machine

 

what will happen?

 

i can’t take the risk of the testing the above scenarios on the server.

 

  • Contacting support we figured out how to resolve this problem.  It appears that UTF-8 doesn't seem to be the default and modifications need to be made in the configuration file. In our case we're using Windows and needed to edit the configuration file ReadyAPI.vmoptions.  In it it's necessary to add the following Entry:

     

    -Dfile.encoding=UTF8

     

    More information can be obtained by looking into this documentation:

     

    https://support.smartbear.com/readyapi/docs/testing/best-practices/unicode-support.html

     

    Personally I still think it's a bug because in my opinion UTF-8 should be the default.

     

     

1 Reply

  • As far as I understand, each time you run testrunner.bat it effectively runs as a separate independent instance. I do not believe that it will "detect" running instance and do anything different.

     

    One important thing to note is that you may hit a license limit. We run our Jenkins server with a named user license and we have to throttle our builds to max two concurrent. If you try to run a third concurrent build (a third testrunner instance) it fails with an exceeded license error.