User forum
The most questions and answers are found in the CubicTest user forum:
http://clearspace.openqa.org/community/selenium/cubictest
The rest of this page is the official CubicTest FAQ.
General
Can I test any kind of web applications with CubicTest?
- Yes, that should be possible as long at is it based on HTML and not e.g. Flash or Java Applets.
What is the relation between CubicTest and Selenium?
- Some of the CubicTest plugins use Selenium to run tests and for recording tests. CubicTest does not depend on Selenium in other ways than this.
Can I run a CubicTest test from the command line or from Maven?
- Yes, CubicTest tests can be launched from JUnit, so any tool like Maven can be used to run the tests. Maven is the easiest option, due to automatic classpath setup and JAR file download.
What license does CubicTest come with?
- CubicTest is licensed under the Eclipse Public License v1.0 (free, open source, no warranty).
How are tests stored on disk?
- Tests are stored in XML, directly mapped from the CubicTest domain model to XML via XStream. Tests can at any time be exported to Selenium Core tables (a popular test format) or Watir test cases.
Can I version control tests?
- Yes, CubicTest uses Eclipse as foundation, and all Eclipse team / version control plugins can be used. Subclipse is bundled with the rich client version of CubicTest.
Can I run/record tests through a corporate web proxy server?
- The use of proxy servers is unsupported in CubicTest. There are workarounds, check out the Selenium Runner documentation and the Selenium Recorder documentation.
Graphical test editor
Why is it not possible to create "cycles" in the tests (i.e. a transition back to a previous page/state)?
- This is not possible because it would complicate the exporting and running of the tests, as well as probably making the test harder to understand.
How to specify a keypress of a special key?
- You must use char codes. See the following example char code listing:
http://www.geekpedia.com/KB53_A-list-of-keys-and-the-JavaScript-char-codes-they-correspond-to.html
Use a backslash in front of the char code, e.g. like this for pressing the "enter" key:
Action type: Key press, text input: \13
If the char code is used in a Custom Test Step, use two backslashes (the Java way).
Running tests
I need to use HTTP Basic Authentication and want to enter username/password automatically
- Firefox supports URL as follows: http://yourUsername:yourPassword@yourHost/ (e.g http://john:pw@localhost/). Use this as your initial URL start point.
