- How do I turn on the password protection?
By default, the security (password protection) is turned off. To turn on the security, go into
Help / Config page, enter a password on the two
password fields and click "Save" button. This is the Admin password.
For Professional Edition, this is the password you need to
use to access TestOptimal. Please note the security is always by-passed when you access
TestOptimal from the same host where TestOptimal is running.
For Enterprise Edition, you have the option
to set a different password for each of the MBT model besides the Admin password. You will be able
to access TestOptimal via either of the passwords.
- Can I connect TestOptimal to my Selenium Server(s) hosted on a different computer?
Yes, select Help/Config menu and set host name and port number in the plugin parameter for Selenium plugin to
the host name and port number of your Selenium server.
- What is Model-Based-Testing (MBT) anyway?
You can find several articles and presentations in the Literatures section on this subject.
- Can TestOptimal run stress and load testing on my web applications?
Yes. In the MBT property (click on the "mbt" node), change the "Virtual users" field to
the number of virtual (concurrent) users you want to simulate the load and set the "Iterations" to at least
the number of virtual users. Save the changes and run your model. Don't forget to select the appropriate
MBT mode. You can find more information on stress /load testing your applications using TestOptimal
at Features.
- I have Professional Edition license, can I upgrade to Enterprise Edition?
Yes, please contact support@TestOptimal.com for the pricing.
- How do I fix "com/jniwrapper/win32/ie/WebBrowser: watij package missing" error?
You need to download Watij implementation package from www.watij.com. You can find the download link and installation instructions at
Resource section.
- Can TestOptimal email me when the test is completed?
Yes, add email script to the MBT_End method in your mScript and java. In windows,
you can use SendSMTP.exe utility to send email, the download link and installation instruction can be found
at Resources section. For unix/linux, you can use regular
SMTP mail utility.
- How do I change JVM heap size and other startup parameters?
If you are running TestOptimal in IDE (Eclipse and NetBeans), the JVM parameters can be changed
through run parameter. For more details refer to the IDE documentation.
For standalone TestOptimal server, edit the java command in the startTestOptimal.bat (or .bash) in TestOptimal/www/
folder and restart the server.
- Can TestOptimal be used to test other non-web applications?
Yes by following the three steps below.
- create the plug-in java class by inheriting from
com.webmbt.plugin.PluginAncestor class and copy or use upload function ".class" files to TestOptimal/script/ folder.
Please note that java .class files must be placed in the directory tree according to its package name/path.
- In Help/Config menu, define your plug-in java class in the plugin-class and parameter fields.
- Restart server.
- How do I add a custom method to mScript?
Follow the three steps below:
- create a custom plugin by inheriting from one of the existing plugins:
com.webmbt.plugin.HtmlunitPlugin, com.webmbt.plugin.SeleniumPlugin
or com.webmbt.plugin.WatijPlugin
- create the method and annotate each method you want to expose to mScript.
example code here.
- compile, copy /upload .class to /TestOptimal/script/.
- In Help/Config menu, change the plugin-class for the plugin which your new plugin inherits from to
your new plugin java class name. Do not change the plugin parameter.
- Restart server.
- What's the difference between Selenium plugin and HtmlUnit plugin?
Selenium drives web application under testing directly on the browser that you choose while
HtmlUnit simulates the mouse clicking and key stroke. With Selenium, you can actually see your application
under testing running on the browser while HtmlUnit you do not. As the result, HtmlUnit can run the testing
much faster than Selenium.
- Can I use both mScript and java handler at the same time?
Yes. Be aware that if you implement the same event method in both mScript and java handler,
they both will be called.
- Can TestOptimal be internationalized?
TestOptimal is designed to support internationalization. The first step is to
edit webmbtMsgList.js in TestOptimal/www/js/ folder by replacing the English words in "code" and "desc" fields
with your language. You may also edit all .html files in
TestOptimal/www/ folder as well but be very careful not to change anything that might affect the application logic.
It is strongly recommended that you make a copy of each file before making any changes to it. You must restart
TestOptimal in order to make the changes effective.
- How do I connect to my TestOptimal session from another computer?
You can access your TestOptimal testing session at http://hostname:port#/list. You will
be presented with a list of sessions currently active. If the security is enabled, you will need to supply
the password in order to access the testing session. You must have cookie enabled on your browser
for the security to work.
- Does TestOptimal support import of any external model format files?
Yes, you can import XMI (state machine diagram only), GraphML and GraphXML.
- Why "Graph" does not work on linux and other OS?
Graphing is done through Graphviz which only runs on Windows platform.
- My TestOptimal seems to hang each time I click on "Screens"?
This is probably due to server CPU overloaded or you have lots of screen files.
In the later case, clean up the screen files should fix the problem. The screen files are located in
TestOptimal/snapScreen/ folder.
- The "JVM Memory" on the "Monitor" page occasionally shows 90% used, do I need to increase the JVM memory?
This is normal unless it stays at 90% constantly. After each GC (Garbage Collection) cycle,
JVM memory usage should go down.
- I like "randomSequence" but how do I test my fix if the test steps are randomly chosen?
Make sure you use the same "seed" and only run in single virtual user mode. By using the same
"seed", TestOptimal will get the same set of random numbers and thus the test sequence will most likely be the
same as last run.
- My MBT execution ended right away when I try to debug it in Eclipse or NetBeans.
This is caused by TestOptimal monitor trying to detect hung worker thread. Add "-debug" option
to the application startup parameter should resolve this issue.
- TestOptimal is not finding my java handler class and other java packages.
Make sure your java .class file is loaded into TestOptimal/script/ folder. If you are using
java packages, make sure .jar files are copied to TestOptimal/www/jar/ folder.
- How do I make TestOptimal start automatically?
Use the startTestOptimalServer.bat as an example, add "-m xxx.sxcml" to the startup parameter
and schedule the .bat file to run as an NT task.
- Can I change TestOptimal to use a different port number?
Yes, in startTestOptimalServer.bat file in TestOptimal/ folder, add a startup parameter "-port nnn"
and restart TestOptimal.
- How do I tell TestOptimal to run the test steps only on the pages I've just changed?
Create an mCase in "mbt" node. Drag and drop the states (web pages) which you've just changed.
If you only changed a few links on the web page and you just want to test those links, then just drap and drop
the corresponding transitions to the mCase. Select mCase Sequence mode and run the model.
- How do I fix the "no optimal solution" or "can not find shortest path to ..." error?
There are some states which are either isolated from the rest or not reachable. Please note
the transition that connects two states are directional. Make sure every state has at least one transition leaving
and one transition entering the state. The Graph can help you identify the orphan states or unreachable states
quicker.
- Where do I put mScript file?
mScript file must be placed in TestOptimal/script folder. In Enterprise Edition, you can use
the "Upload" function to upload your mScript to the server. In Professional Edition, use OS file copy function
to copy mScript.