Thread

Skip Navigation LinksForums > RemoteLaunch Forums > RemoteLaunch Automation E... > RemoteLaunch and Selenium...

RemoteLaunch and Selenium 2 RSS Feed

Thursday, March 31, 2016

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
Sarah T.Sarah T.
re: Mauro Biffi on Thursday, March 31, 2016
Friday, April 1, 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
Mauro BiffiMauro Biffi
re: Sarah T. on Friday, April 1, 2016
Monday, April 4, 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.

Mauro BiffiMauro Biffi
re: Mauro Biffi on Monday, April 4, 2016
Monday, April 11, 2016

Dears,

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

Thank you.

Adam SAdam S
re: Mauro Biffi on Monday, April 11, 2016
Wednesday, April 13, 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
Tagged
Statistics
  • Started: 3/31/2016
  • Last Reply: 4/13/2016
  • Replies: 4
  • Views: 2326
Powered by KronoDesk v1.1.0.15 | © Copyright Inflectra Corporation 2011-2016 | Licensed to Inflectra Corporation.