Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seems to be working on Windows 10 #235

Open
varnav opened this issue Mar 20, 2017 · 4 comments
Open

Seems to be working on Windows 10 #235

varnav opened this issue Mar 20, 2017 · 4 comments

Comments

@varnav
Copy link

varnav commented Mar 20, 2017

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
Copy link
Author

varnav commented Mar 20, 2017

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
Copy link
Author

varnav commented Mar 20, 2017

Use with --skip_term_colors

@evanniedojadlo
Copy link

@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
Copy link
Author

varnav commented Apr 21, 2017

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants