Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
General Discussions
Switcher Hangout (Windows to Mac)
How to execute *.bat file in Mac
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Raz0rEdge" data-source="post: 1531651" data-attributes="member: 110816"><p>The BATch file is very trivial in what it does, converting it to a BASH script is as simple as</p><p></p><p>[CODE]</p><p>#!/bin/bash</p><p></p><p>echo "Running ConfigureTests.py to get the selections regarding the test cases to be executed"</p><p></p><p>./ConfigureTests.py</p><p></p><p>echo "Now, the configurations are saved to TestConfig.txt file."</p><p>echo "Please ensure that squishserver is running before starting the automated testing"</p><p>echo "To start squishserver cd to the squish bin folder in a separate command prompt window"</p><p>echo "and then type squishserver:"</p><p>echo "Example: cd I:\squish-4.0.2-qt47x-win32-msvc8\bin\ and then squishserver"</p><p></p><p>./runTests.py</p><p></p><p>echo "Please check I:\Test Results\index.html to examine the Test Execution Report"</p><p>[/CODE]</p><p></p><p><strong>However</strong>, this will do nothing for you for a couple of reasons. You need this Squishserver to be available on OS X. If you don't have that, you cannot proceed. You might have to modify the two python scripts minimally to set the correct path to the Python interpreter..</p><p></p><p>Open up the Terminal (Applications->Utilities->Terminal) and type</p><p>[CODE]</p><p>which python</p><p>[/CODE]</p><p></p><p>This should return a valid path name as opposed to just returning with no output. If you get a valid path, then that's the path you want to use in your python scripts..</p></blockquote><p></p>
[QUOTE="Raz0rEdge, post: 1531651, member: 110816"] The BATch file is very trivial in what it does, converting it to a BASH script is as simple as [CODE] #!/bin/bash echo "Running ConfigureTests.py to get the selections regarding the test cases to be executed" ./ConfigureTests.py echo "Now, the configurations are saved to TestConfig.txt file." echo "Please ensure that squishserver is running before starting the automated testing" echo "To start squishserver cd to the squish bin folder in a separate command prompt window" echo "and then type squishserver:" echo "Example: cd I:\squish-4.0.2-qt47x-win32-msvc8\bin\ and then squishserver" ./runTests.py echo "Please check I:\Test Results\index.html to examine the Test Execution Report" [/CODE] [B]However[/B], this will do nothing for you for a couple of reasons. You need this Squishserver to be available on OS X. If you don't have that, you cannot proceed. You might have to modify the two python scripts minimally to set the correct path to the Python interpreter.. Open up the Terminal (Applications->Utilities->Terminal) and type [CODE] which python [/CODE] This should return a valid path name as opposed to just returning with no output. If you get a valid path, then that's the path you want to use in your python scripts.. [/QUOTE]
Verification
Name this item 🌈
Post reply
Forums
General Discussions
Switcher Hangout (Windows to Mac)
How to execute *.bat file in Mac
Top