CubicTest - Troubleshooting
User forum
The most questions and answers are found in the CubicTest user forum:
http://clearspace.seleniumhq.org/community/selenium/cubictest
Use the forum for questions. The rest of this page is the official CubicTest Troubleshooting.
All versions
Problem asserting presence of page elements resulting from a page manipulation without a page reload.
The test browsers (Firefox etc.) + perhaps Selenium seem to cause this issue. The XPath source of the DOM seems to not be updated. To remedy, try using a Custom Test Step and get the element by ID or name instead. Remember to retry asserting the presence (retry for e.g. 10 seconds) as the page element might not be present immediately when entering the custom test step.
Problem with locating elements on web page
Solution: Use Selenium Runner debug log / XPath Checker
If you are having problem with locating an element when running a test (no element or wrong element found), remember to check the identifiers of the element. All identifiers with "must" moderator must be satisfied. If more than one element matches the identifier, the first one is picked by the runner. Consider using contexts if you do not have enough identifiers (if you can find a unique parent element).
Also consider using the "Contains", "Starts with" or "Ends with" moderators, as some identifiers (e.g. labels) may have HTML formatting around them, and then these moderators will solve the problem by not requiring the the whole string matches.
If you still are having problems, check the Selenium Runner has a debug log. Press the "Show log" button in the Selenium frameset in the browser (e.g. in Firefox)
Here the XPath expressions used for locating elements can be seen. If you are having trouble with an XPath expression locating an element, copy the XPath from the log and paste it into e.g. the XPath Checker Firefox extension (must be downloaded seperately as a Firefox extension). When installed, right click in the web page and select "View XPath") and paste the XPath there. The XPath Checker shows you the elements that match your XPath expression. Adjust your XPath expression until you see only the element you wish to locate.
PS: The XPath Checker extension will not be loaded with the Selenium Runner in CubicTest, so you will have to use a seperate browser window.
Update-site version
The CubicTest perspective will not open / show up in list of perspectives
Make sure you have minimum requirementsinstalled.
If you have multiple JREs (Java Runtime Environments) on your computer,you may have to tell Eclipse to use the Java 5 JRE:
- Create a shortcut to your eclipse.exe file,
- In the shortcut: Add a -vm parameter pointing to the javaw.exe in the Java 5 JRE directory that Eclipse should use.
- E.g.: "C:\Program Files\eclipse-SDK-3.2-win32\eclipse.exe" -vm "C:\Program Files\Java\jdk1.5.0_08\jre\bin\javaw.exe"
- Start Eclipse with this shortcut.
If this does not help, you might want to try the rich client version of CubicTest.
Rich Client version
Problem with sharing a project with subclipse
Subclipse is bundled in the CubicTest rich client version, but sharing a project might show an error message. Try configuring the project with Tortoise SVN first, then share the project with subclipse in CubicTest.
Maven version
Error messge "Unsupported major.minor version 49.0"
This happens when the command prompt is not configured with Java 5 or higher as JAVA_HOME
Solution: Set JAVA_HOME to a Java 5 or higher JRE. If you use the rich client version, invoke the following command in the command prompt: set JAVA_HOME=<cubictest install dir>\jre. Closing the command prompt window sets JAVA_HOME back to the original value.