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

Redwood does not run python scripts on Mac Client #10

Open
yodaqua opened this issue Sep 19, 2016 · 1 comment
Open

Redwood does not run python scripts on Mac Client #10

yodaqua opened this issue Sep 19, 2016 · 1 comment

Comments

@yodaqua
Copy link

yodaqua commented Sep 19, 2016

Hi Dmitri

I logged this issue on the PrimaTest Google Group.

I tried the following script:
class PythonAction:
def run(self,params):
print ("I am Python Action")
pass

I went through normal script -> action -> test case -> execution process. During the execution, the test step associated with the action remains in state of 'not_run'.

A runtime folder .../RedwoodHQAgent/agent/executionfiles/1471508853670-3338-10981/does appear. The Lib directory in this runtime folder does contain two zipped python folders: 'pythonLibs.zip' and 'pythonSources.zip'. The folders contain all the python modules and scripts required to run the test.

Unfortunately this does not happen. The test step is perpetually caught in a state of 'not_run'.

I've looked at the logs. I'm not sure if this is the cause of the issue:
{"level":"error","message":"sendFileToAgent problem with request: socket hang up file:C:\Program Files\RedwoodHQ/logs/jar_1471508853670-3338-10981/pythonSources.zip","timestamp":"2016-09-09T08:22:20.028Z"}
{"level":"error","message":"matchFileWithAgent problem with request: Unable to read file:C:\Program Files\RedwoodHQ/logs/jar_1471508853670-3338-10981/pythonSources.zip ","timestamp":"2016-09-09T08:24:50.105Z"}

server and agent logs.zip

Environment:
Server:

  • Windows 2012 R2 (VM in a virtual box on the client machine)
  • RedwoodHQ: Version = 2.40.20
  • Python 2.7.12
    Client:
  • Mac: OSX 10.11.3
  • RedwoodHQAgent version = 2.40.20

When starting the RedwoodHQ Agent on my machine, I get the following output:
info: Agent Started.
info: getExecutionStatus result: Error: invalid json
at Object.exports.error (C:\Program Files\RedwoodHQ\node_modules\express\node_modules\connect\lib\utils.js:44:13)
at IncomingMessage. (C:\Program Files\RedwoodHQ\node_modules\express\node_modules\connect\lib\middleware\json.js:68:73)
at emitNone (events.js:72:20)
at IncomingMessage.emit (events.js:166:7)
at endReadableNT (_stream_readable.js:905:12)
at nextTickCallbackWith2Args (node.js:437:9)
at process._tickCallback (node.js:351:17)
info: execution=null

Please help.

@yodaqua
Copy link
Author

yodaqua commented Sep 19, 2016

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

1 participant