I tried Selenium 2.0 (documentation says it's using WebDriver) as so:
java -jar selenium-server-standalone-2.0a1.jar -htmlSuite "*firefox" ...
but it seems that the WebDriver backend isn't used (especially since I haven't installed any Firefox plugin)? All Selenium 2.0 documentation uses Java interface, but it seems that using HTML suite uses the classic Selenium backend?
I've found no documentation on how to set up things for htmlSuite, but using the "headless" (HtmlUnit) version is totally OK (I don't need Firefox).
Edit: Selenium says RemoteWebDriver instances should connect to: http://...:4444/wd/hub when starting up... Any idea of what to do and how?
Edit 2: Rewriting the test in Java using WebDriverBackedSelenium works. Thus the problems arise from htmlSuite not implemented using WebDriverBackedSelenium?
From what I've uncovered in the code, Selenium RC and WebDriver are not yet merged. I may be wrong here, but I think the only way to use WebDriverBackedSelenium is directly in your Java test harness. If you're using a language other than Java to drive Selenium RC, you're SOL as far as I can tell.
I assume that WebDriverBackedSelenium is not yet supported, and continue to write my system/integration tests for GWT in Java instead of HTML.
Related
I am trying to learn about any library which is good to use with Python 3.X where Script can send the SOAP/XML request to Listener/Services and Capture the response.
HttpLibrary.HTTP cant work with python 3. similar case with JASONLibrary. Any suggestions?
I used "suds" library to send SOAP requests and it worked fine.
Please give it a try. The instructions are in the below link
Python3-Suds
Also check the Robot Suds library
Robot-Suds
Can I run test using Selenium 2 without the source code of the application to test?. I want to use Selenium with Java (Eclipse).
I believe that you do not need the source code, you can grab the element through the view source function. But more details would be good also.
I hava met some problems .
I want to encrypt the war using Spring by a tool named ClassGuard ,but when I deploy it to Tomcat and started to launch it , some problems(seemed to be A fatal error has been detected by the Java Runtime Environment) arised .
have anyone used ClassGuard and met problems like this?
please help me...thanks in advance!
Although without the exception we can only speculate, the ClassGuard FAQ section clearly states that:
As of Version 1.5, ClassGuard supports Tomcat containers.
To use ClassGuard in combination with tomcat, you have to configure your web application for using the ClassGuard tomcat class
loader. This can be set in the context of the web application.
So make sure that:
You are using the latest stable version.
You are using the appropriate class loader.
A probably (although not sure if it is what you are after) easier way to discourage usage of your code would be through Obfuscation Tools such as these.
I'm trying the sample demo of selenium flex API. After following the instructions on the main page for compiling the project with sfpi.swc and taking the generated selben.swf in bin directory and trying to run some test(assertFlexText) using Selenium IDE, I get the following error:
[error] Function getFlexText not found on the External Interface for
the flash object selben
I have tried several other flex tests and got error messages similar to the one mentioned above.
For some reason I believe that the generated selben.swf through the automatic build of project in flex builder is not the desired one, though it didn't indicate any build problem after including sfpi.swc.
Any idea?
I use SeleniumFlex Api and SeleniumIde for my projecy with excellent result BUT using my own version of each of one. Your error maybe is for not include the lib of SeleniumFlexApi in the compile time( -include-libraries "libs\SeleniumFlexAPI.swc" ).
After that u can enable capture and replay with SeleniumIde change the main source (read this post) and use the user-extensions.js (in the SeleniumFlexApi project) with the SeleniumIde user option. Its really easy.
With these change u can capture and replay in firefox (v 3.06 or minor) and after that, if u use java, u can use Flex-UI-Selenium, Flash-Selenium for ur integration test with SeleniumRC.
I hope this information be usefull. I u have any question let me know.
Anyone come across this error when trying to import a WSDL in Flex builder 3?
Seems it only occurs when trying to import a WCF based service which has 'virtual' endpoints...
Some digging around makes me think Flex has trouble parsing the wsdl (however standard web services work fine).
A bug has been opened for months and still no reply from Adobe:
http://bugs.adobe.com/jira/browse/FB-13542
I am using Flex Builder 3 and the solution found here http://poradowski.com/fb/ that was mentioned in the adobe bug base at FB-13542 worked for me. I just backed up the com.adobe.flexbuilder.axis2_3.0.214193.jar file and put the updated jar file in it's place. Restarted Flex Builder and was able to import our wsdl that had the "policy" tags in it.
This generally happens when you are using the StAX API, and you do not have a StAX implementation in your classpath. See http://forums.java.net/jive/thread.jspa?messageID=117971
I am not too familiar with Flex - but even if you are not using StAX directly, it may be using it under the covers.