Re: Some robotsuite weirdness (tl;dr)

Asko Soukka <[email protected]>
Newsgroups gmane.comp.web.zope.plone.devel
Message-ID <[email protected]>
Hi Jean,

do you know, which robotframework-version were you using with robotsuite 
1.2.2?

There are some major changes between robotfarmework 1.7.x and 1.8.x. and
robotsuite < 1.4.0 works only with robotframework 1.7.x and robotsuite 
 >= 1.4.0 work only with robotframework >= 1.8.x. (And these versions 
are explicitly required only in robotsuite 1.3.3 and 1.4.0.)

Regards,
Asko

Jean Jordaan wrote:
> I've been using version robotsuite 1.2.2 with no issues. Today
> suddenly I can't run tests. After debugging, I find that robotsuite is
> trying to create a path using a `TestCaseFile` object, resulting in
> this path:
>
> ```python
> (Pdb) path
> u"/home/jean/zope/plomino/parts/test/<Unrepresentable object
> 'TestCaseFile'. Error: TypeError: coercing to Unicode: need string or
> buffer, TestCaseFile found>"
> ```
>
> This patch fixed it:
>
> ```diff
> diff --git a/src/robotsuite/__init__.py b/src/robotsuite/__init__.py
> index bb6031f..6f75a83 100644
> --- a/src/robotsuite/__init__.py
> +++ b/src/robotsuite/__init__.py
> @@ -221,7 +221,7 @@ class RobotTestCase(unittest.TestCase):
>           recurse(suite, self, suite_parent)
>
>           # Set suite to be run bu runTest
> -        self._robot_suite = suite
> +        self._robot_suite = filename
>           # Set outputdir for log, report and screenshots
>           self._robot_outputdir = outputdir
>           # Set test method name from the test name
> ```
>
> I have no idea why it worked before and went screwy.
>
> Upgrading to 1.4.0 fixed it.
>
> Posting to the list to vent and in case anyone else runs into this.
>

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.