Recently, I've been utilizing Selenium IDE to develop some tests. Within the IDE settings, I've specified a user-extensions.js file which is functioning as intended. Here's a snippet of its contents:
Selenium.prototype.doactivateEnv = function(nomDeVariable){
storedVars[nomDeVariable] = "test";
}
Oddly enough, when I execute a test using the "activateEnv" command in Selenium RC server, it fails to recognize the command entirely. Every test I run encounters the same error:
info: Starting test /selenium-server/tests/TestStaticID.html
info: Executing: |activateEnv | ENV | |
error: Unknown command: 'activateEnv'
warn: currentTest.recordFailure: Unknown command: 'activateEnv'
This is the command I use to initiate the Selenium RC server:
D:\__Miroslav\OMC\tests>java -jar selenium-server-standalone-2.24.1.jar
-userExtensions user-extensions.js -port 4545 -htmlsuite *chrome
"http://localhost:8080/" TestSuite\tests.html results\results.html
Even when placing the user-extensions.js file in the same directory as the server's jar file and trying both absolute and relative paths, the issue persists. Testing with Firefox, Chrome, and IE all yield the same results.
I have a feeling that I must be overlooking a fundamental error, but I simply cannot pinpoint it. Any assistance would be greatly appreciated.
UPDATE: I conducted a test and found that enabling user Extensions in Selenium RC interactive mode allows the command to function correctly:
14:47:31.531 INFO - Command request: activateEnv[ENV, ] on session 887e2d2c6f884c81b0c39f32c24d523a
14:47:31.531 INFO - Got result: OK on session 887e2d2c6f884c81b0c39f32c24d523a
However, the command still does not work in -htmlsuite mode.