RemoteLaunch and Selenium 2

Thursday, March 31, 2016
Avatar

Hi All,

I've created an automated test case in Spirateam, setting:
 "Selenium 2" as Automation Engine
Java Selenium script path in the Filename.

When I run it, I get an error:
Exception:
The specified node cannot be inserted as the valid child of this node, because the specified node is the wrong type.

Stack Trace:
at Inflectra.RemoteLaunch.Engines.Selenium2.SeleniumEngine.StartExecution(AutomatedTestRun4 automatedTestRun, Int32 projectId)
at Inflectra.RemoteLaunch.Business.RunTestThread.Execute()

Does anyone has a simple example on how to setup and run a Selenium 2 test case?

I'm using RemoteLaunch windows application (not RemoteLaunchX) and I've already installed the proper Selenium addon.

In the user manual, there's only one example related to Selenium RC.

Thank you.

4 Replies
Friday, April 1, 2016
Avatar
inflectra.sarahx
re: mauro.biffi Thursday, March 31, 2016
Hi Mauro

As described in this KB Articles you cannot use the Selenium2 plugin to run Java scripts, you can only use that for Selenium IDE style scripts (HTML format):
Regards

Sarah
Monday, April 4, 2016
Avatar
re: inflectra.sarahx Friday, April 1, 2016

Thank you Sarah.

The two links/methods you've posted use the Command Line option in Automation Engine .

Could you please clarify how to use the Selenium 2 Automation Engine?

Thank you very much in advance.

Monday, April 11, 2016
Avatar
re: mauro.biffi Monday, April 4, 2016

Dears,

is it possible to know how to use Selenium 2 Automation Engine?

Thank you.

Wednesday, April 13, 2016
Avatar
re: mauro.biffi Monday, April 11, 2016
Hi Mauro

To be clear, the Selenium (1 or 2) automation engines are designed to run tests written in pure Selenese, not using Java, Python, Ruby, .NET, etc..

So the script needs to be written in either the special Spira 'pipe' format:

open||http://www.google.com/webhp

assertTitle||Google

type|q|${query}

click|btnG

waitForPageToLoad||5000

isTextPresent||${matchtext}



or the standard Selenium IDE HTML table format.

open

 

http://www.google.com/webhp

assertTitle

 

Google

type

q

${query}

click

btnG

 

waitForPageToLoad

 

5000

isTextPresent

 

${matchtext}



Also a new option would be to write them using the new WebDriver object that is built into Rapise:

https://www.inflectra.com/Documents/Using_Rapise_With_Selenium_For_Web_Testing.pdf


Regards

Adam

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Thursday, March 31, 2016
  • Last Reply: Wednesday, April 13, 2016
  • Replies: 4
  • Views: 5511