RemoteLaunch and Selenium 2

Thursday, March 31, 2016 4:19:45 PM

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 9:36:34 PM
Avatar
re: mauro.biffi on Thursday, March 31, 2016 4:19:45 PM
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 2:10:13 PM
Avatar
re: inflectra.sarahx on 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 5:14:13 PM
Avatar
re: mauro.biffi on Monday, April 4, 2016

Dears,

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

Thank you.

Wednesday, April 13, 2016 2:37:29 PM
Avatar
re: mauro.biffi on 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
Statistics
  • Started: Thursday, March 31, 2016 4:19:45 PM
  • Last Reply: Wednesday, April 13, 2016 2:37:29 PM
  • Replies: 4
  • Views: 2407