Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

when finish record, wrtie record.json file error #50

Open
hugoxie opened this issue Feb 19, 2014 · 0 comments
Open

when finish record, wrtie record.json file error #50

hugoxie opened this issue Feb 19, 2014 · 0 comments

Comments

@hugoxie
Copy link

hugoxie commented Feb 19, 2014

when q+enter to finish record, after huxley playback, wrtie record.json file error
I use windows7, default encode is gbk, when I finished record, huxley report decodeError.
the trackback is:
Traceback (most recent call last):
File "E:\Python27\lib\threading.py", line 810, in __bootstrap_inner
self.run()
File "E:\Python27\lib\threading.py", line 763, in run
self.__target(_self.__args, *_self.__kwargs)
File "build\bdist.win-amd64\egg\huxley\threadpool.py", line 32, in thread
func(_args, *_kwargs)
File "build\bdist.win-amd64\egg\huxley\cmdline.py", line 69, in run_test
screensize=screensize
File "build\bdist.win-amd64\egg\huxley\main.py", line 110, in main
TestRun.record(local_d, d, (url, postdata), screensize, filename, diffcolor,
sleepfactor, save_diff)
File "build\bdist.win-amd64\egg\huxley\run.py", line 152, in record
cls.rerecord(test, path, url, remote_d, sleepfactor, diffcolor, save_diff)
File "build\bdist.win-amd64\egg\huxley\run.py", line 75, in rerecord
run._playback(sleepfactor)
File "build\bdist.win-amd64\egg\huxley\run.py", line 95, in _playback
step.execute(self)
File "build\bdist.win-amd64\egg\huxley\steps.py", line 61, in execute
print ' Typing', self.key
UnicodeEncodeError: 'gbk' codec can't encode character u'\xbe' in position 0: il
legal multibyte sequence

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

No branches or pull requests

1 participant