Preparing selenium IDE
- Install selenium IDE.
- Goto <webroot>/IDE-formats and open BR3-java.txt or BR3-php.txt in a text-editor. Copy everything (ctrl-a, ctrl-c).
- Open selenium IDE.
- Select options -> options
- Select Formats -> Add
- Type in a name, eg. BR3 java or BR3 php
- Overwrite everything (ctrl-a, ctrl-v)
- click OK
Record and export
- Record a test, just as you would normally
- Select file -> export test case as -> BR3 java or BR3 php
- Save the file somewhere
If Java: Compile
If you've just exported as java you need to compile the test into an executable .jar file before uploading.
Basically you need to
- Add the 4 jars found under <webroot>/app/webroot/testscripts/Google sample/jar/lib as libraries
- Create a class with your code and set it as the main class
- Compile
Check Compiling a java script for Bromine in netbeans for more details if above wasn't sufficient.
Upload in Bromine
- Login to Bromine
- Go to planning
- Click a testcase
- Click edit
- Click upload testscript
- Select the file
- Click submit