-
Notifications
You must be signed in to change notification settings - Fork 8
Handling __init__ and __introduction__ #6
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -70,6 +70,7 @@ function Server(libraries, options, listeningCallback) { | |
| this.server.on('get_keyword_arguments', rpcWrap(this.getKeywordArguments)); | ||
| this.server.on('get_keyword_documentation', rpcWrap(this.getKeywordDocumentation)); | ||
| this.server.on('get_keyword_tags', rpcWrap(this.getKeywordTags)); | ||
| this.server.on('get_keyword_types', rpcWrap(this.getKeywordTypes)); | ||
|
|
||
| // Register signal handlers. | ||
| var handleSignal = function () { | ||
|
|
@@ -101,6 +102,11 @@ Server.prototype.getKeywordTags = function (name, response) { | |
| response(null, this.keywords[name].tags || []); | ||
| }; | ||
|
|
||
| Server.prototype.getKeywordTypes = function (name, response) { | ||
| // https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#argument-types | ||
| response(null, this.keywords[name].types); | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what if types is not specified? how is that supposed to be filled? would be good and example keyword in test library where types are specified. |
||
| }; | ||
|
|
||
| Server.prototype.getKeywordArguments = function (name, response) { | ||
| response(null, this.keywords[name].args); | ||
| }; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,15 +3,14 @@ | |
| Library Process | ||
| Library String | ||
| Suite Setup Start Remote Server | ||
| Suite Teardown Stop Remote Server | ||
| Suite Teardown Collect Logs and Stop Server | ||
|
|
||
| *** Variables *** | ||
|
|
||
| ${HOST} localhost | ||
| ${PORT} 8270 | ||
|
|
||
| *** Test Cases *** | ||
|
|
||
| Run Synchronous Keyword Without Return Value And No Arguments | ||
| ${result}= Do Nothing | ||
| Should Be Equal ${result} ${EMPTY} | ||
|
|
@@ -61,11 +60,21 @@ Run Asynchronous Failing Keyword | |
| Never Returning Keyword Should Fail After Timeout | ||
| Run Keyword And Expect Error Error: Keyword execution got timeout Never Return | ||
|
|
||
| Generate Documentation | ||
| Run Process python -m robot.libdoc Remote::http://${HOST}:${PORT} example.html | ||
| Process Should Be Running | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. shouldn't wait for it? and check status? |
||
|
|
||
| *** Keywords *** | ||
|
|
||
| Start Remote Server | ||
| ${remote}= Start Process node ./test/testlibrary.js ${HOST} ${PORT} | ||
| Sleep 1s | ||
| Process Should Be Running ${remote} | ||
| Process Should Be Running | ||
| Import Library Remote http://${HOST}:${PORT} | ||
|
|
||
| Collect Logs and Stop Server | ||
| Run Keyword And Ignore Error Stop Remote Server | ||
| Wait For Process | ||
| ${result} Get Process Result | ||
| Log ${result.stdout} | ||
| Log ${result.stderr} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -147,4 +147,3 @@ describe('Robot Remote Library', function () { | |
| }); | ||
| }); | ||
| }); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
other than indirectly, by using libdoc, this could be tested with mocha for basic functionality and maybe couple edge cases.