I am planning to automate security testing for a web application.
I have the selenium code which is developed using JAVA language, now I need to integrate with ZAP.
Kindly help me how to integrate these two and generate the reports for the same.
You can configure Selenium to use Zap as a proxy. Take a look here for a full solution using WebDriver.io, which is a tiny JS wrapper around selenium. It should give you a high level overview of how to build and run such a solution in the CI. Let me know if you need more help.
Related
I have everything set up to run a headless browser using Selenium in Java. I cant figure out now what I need to do to extract elements from this ReactJS website (the site contains either ReactJS or Javascript I'm not sure).
I feel like I may be approaching this wrong and/or missing some libraries that would help me along the way.
Any help greatly appreciated.
If you do Web Interface tests or scraping with Java + Selenium, I advise you to use the NoraUi Open Source Framework.
What are the parameters to do the POC of the application and making sure it's right candidate for Selenium Automation and then how to begin from there?
If you know your goals, then the issue is to show how Selenium can achieve those goals.
If you don't know your goals, then every tool is the wrong tool until you know what it is you wish to accomplish.
Selenium is good at automating testing of web applications across multiple different web browsers. Some aspects of that testing are better than others, and all of those tests will be written by the testing team that leverages Selenium to verify the application's correct appearance or functionality.
If you have a web application, but don't know how you might test it (possibly because you don't have a test plan) Selenium won't provide a good test plan. It will just provide a set of tools that make some test plans much easier to implement.
I think what business problems selenium solves in that application.
I need to automate a web application which is in PHP with flash. Is it possible to automate the application using selenium java with FlexUISelenium or FlexMonkium.
Thanks in advance.
If it's pure Flash without Flex then you should put some external like these methods to your Flash application and call them from your test code in order to verify functionality. If it's Flex then FlexUISelenium and FlexMonkium will help you - but again you should compile these libraries into your Flex app - they contains required methods to be called from Selenium.
In the case you are not allowed to modify your Flash application I would recommend to take a look to image-based tools like Sikuli
This is a Java - Selenium ( any other related technologies ?) project I need to do on the side for a friend, who volunteers at a non-profit organization. I am supposed to create an application to test their web pages. I am more into the server side of java, c, c++. My question is what are the open source technologies and frameworks available which will help me to build a robust test framework, I need to create a process for them, so that any future volunteers with basic knowledge of java and selenium can maintain, add new test cases as and when necessary. I read a little about TestNG but now sure that it is the best out there.
Please suggest best practices for building a java selenium test framework
Use Selenium 2/WebDriver as the browser automation tool
Geb + Spock if you can use Groovy otherwise JUNIT + PageObject pattern
If this is just a simple homepage without many Javascript, I recommend HTMLUnit since it's faster than Selenium. But you might be interested in Cuke4Duke for BDD style.
https://github.com/cucumber/cuke4duke/tree/master/examples/java-webdriver
Junit or TestNG is good choice for using with selenium RC. 1st you should explore ide then go for selenium RC. One good Example is available at http://www.dev2all.com/articles/
What's the best, crossplatform way to perform blackbox tests on AJAX web applications?
Ideally, the solution should have the following attributes:
Able to integrate into a continuous integration build loop
Cross platform so I you can run it on Windows laptops and Linux continuous integration servers
Easy way to script the interactions
Free-as-in-freedom so you can adapt it into your tool chain if necessary
I've looked into HttpUnit but I'm not conviced it can handle AJAX-heavy websites.
Selenium might be what you're looking for: http://selenium.openqa.org/
It allows you to script actions and evaluate the results. It's open-source (Apache 2.0), cross platform, and has nice tools.
I have used Selenium for exactly this task, but found it to be brittle.
Check out this talk by two Googlers: Does my button look big in this? Building testable AJAX applications
They isolate the testable javascript (non DOM-interaction) and test that using the Rhino javascript engine.