svanoort / pyresttest

Python Rest Testing
Apache License 2.0
1.15k stars 325 forks source link

Seems to be working on Windows 10 #235

Open varnav opened 7 years ago

varnav commented 7 years ago

Hello!

I've managed to run it under Windows 10 & Server 2012 R2.

Installation is straightforward:

  1. Install Python 3.5 (PycURL is not available for 3.6 for Windows yet)
  2. Run pip install pyresttest from admin command line

Running is easy too:

python c:\python35\scripts\pyresttest --skip_term_colors http://foo bar.yml

If you get errors like:

'charmap' codec can't encode characters in position 25-29: character maps to <undefined>

Switch windows console to Unicode with:

chcp 65001
set PYTHONIOENCODING=utf-8
varnav commented 7 years ago

Tested with Windows Server 2012 R2:

  1. Works with Python 3.5
  2. Does not install with Python 3.6 (PycURL is not available for 3.6 for Windows yet)
varnav commented 7 years ago

Use with --skip_term_colors

evanniedojadlo commented 7 years ago

@varnav @svanoort That's good to hear. Our current build sever (via TeamCity) is running windows and I want to use pyresttest for smoke tests on staging and production commits. The only concern is that I didn't see official windows support within the documentation.

varnav commented 7 years ago

There is one more trick that may be needed. Switch windows console to Unicode with:

chcp 65001
set PYTHONIOENCODING=utf-8

Or you may get errors like:

'charmap' codec can't encode characters in position 25-29: character maps to <undefined>