Revision: fd4f0b48c993
Author:   Janne Härkönen <[email protected]>
Date:     Wed Jan 11 06:56:58 2012
Log:      dryrun: Resolve Import Library keyword calls

Update issue 675
Status: Done
http://code.google.com/p/robotframework/source/detail?r=fd4f0b48c993

Modified:
 /atest/robot/cli/dryrun/dryrun.txt
 /atest/testdata/cli/dryrun/dryrun.txt
 /src/robot/running/handlers.py

=======================================
--- /atest/robot/cli/dryrun/dryrun.txt  Sat Jun 11 14:51:08 2011
+++ /atest/robot/cli/dryrun/dryrun.txt  Wed Jan 11 06:56:58 2012
@@ -96,6 +96,11 @@
 Test from other suite
     Check Test Case  Some Other Test

+Import Library Keyword is Called
+    Check Test Case    ${TESTNAME}
+    Check Syslog Contains  Imported library 'String' with arguments [ ]
+ Check Syslog Contains Imported library 'ParameterLibrary' with arguments [ value | 42 ]
+
 *** Keywords ***
 Should have correct number of keywords
     [Arguments]  ${test or uk}  ${exp number of kws}
=======================================
--- /atest/testdata/cli/dryrun/dryrun.txt       Sat Jun 11 14:51:08 2011
+++ /atest/testdata/cli/dryrun/dryrun.txt       Wed Jan 11 06:56:58 2012
@@ -8,6 +8,9 @@
 Resource  NonExisting.tsv


+*** Variables ***
+${value}    value
+
 *** Test Cases ***

 Passing keywords
@@ -95,6 +98,12 @@
     UK with multiple failures
     Does not exist

+Import Library Keyword is Called
+    Import Library   String
+    Get Line Count   foo
+    Import Library   ParameterLibrary   ${value}    ${42}
+    Parameters
+

 *** Keywords ***
 Embedded ${args} here
=======================================
--- /src/robot/running/handlers.py      Wed Sep 21 04:52:47 2011
+++ /src/robot/running/handlers.py      Wed Jan 11 06:56:58 2012
@@ -109,6 +109,8 @@
         return self._run(context, args)

     def _dry_run(self, context, args):
+        if self.longname == 'BuiltIn.Import Library':
+            return self._run(context, args)
         self.arguments.check_arg_limits_for_dry_run(args)
         return None

Reply via email to