Some robotsuite weirdness (tl;dr)
Jean Jordaan <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Message-ID | <CAJqnznDTSu0JOty3789EgkfzdjCzXE44bF14Npm_cAt8mGqXMw@mail.gmail.com> |
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.
--
jean . .. .... //\\\oo///\\
------------------------------------------------------------------------------
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