How to create multiple test cases in Jira using Zephyr(in Java)
On the Atlassian marketplace you can find the ZAPI add-on which makes REST API calls available for Zephyr. The add-on is not free though.
From your java app (or groovy scripts or whatever), you can use your favorite REST client library to call the ZAPI resources to create tests, but you'll have to check the docs here.
Related
I have written selenium tests in eclipse java. I have manual test cases in tfs. Is there a way to update automation test status in tfs thru java code
About the TFS and java integration, take a look at below question:
Microsoft provide a full, rich TFS Plug-in for Eclipse (called
Team Explorer Everywhere). This provides full source control, work item tracking, build, sharepoint, reports access etc into TFS from
Eclipse based IDE's. It's written in 100% Java and talks directly to
the web services exposed by TFS.
Source Link:
TFS for Java - bad idea?
More details about how to get the best out of TFS if you are a Java developer, checkout: Working with Visual Studio Team Services (VSTS)/TFS and Java
If you want to link Java Test Automation with Microsoft Test Manager, TFS , Test Cases, which is not support for now, track this uservoice: Enable Java Automated Test to execute from MTM and get the java test automation linked to manual test cases
If you want to update automation test results/report in tfs, possibility duplicate of this question: Selenium Java Integration with Team Foundation Server Please go through the details in the answer, which should be helpful for you.
I have to automate REST API testing in my project and integrate it in to existing CI in jenkins.
I am about to start coding using REST-assured.However I happened to see SOAP UI REST tutorial and understand that there is a maven plugin in SOAP UI to help jenkins integration. Before I progress, just wanted to know if there is an obvious advantage to using SOAP UI over Rest-assured.
I have to complete the automation of around 30 requests with complex JSON responses in about a month - including schema validation for responses.
I haven't used REST-assured, but I had a quick look and I see it's a java DSL for testing rest services. Given that it does what it says it does, here's my answer...
I've used SOAP UI for testing of web services. Generally, SOAP UI has been very good for manual testing, but I found it difficult for automated testing.
The main reason was that many of the file paths are hard corded into SOAP UI projects, and so a project referring to c:\development\myproject\wsdl\myservice.wsdl would suddenly not work on another developer machine at /dev/myproject/wsdl/myservice.wsdl.
I also found not being able to effectively edit the SOAP UI projects in intellij meant I was constantly alt-tabbing.
Yes, the soap ui maven plugin did work, but I found it cumbersome.
Note that I haven't used SOAP UI REST, just "normal" SOAP UI, but if your use case is purely to implement automated testing, and that the REST-assured framework does what it says, I would certainly recommend to use the DSL.
Given your current use case, the simplest among the 2 would be to use rest assured (+points to java dsl; bonus readability for testing; but you can always use other clients if you want to). Given that you intend to automate your test and integrate it on CI, you can simply create a module which runs your test suite on a given phase and gather the results.
PS: i currently use jbehave + rest-assured
Is it possible to run Selenium tests written in Java in the Play1 framework?
The Play! framework supports Selenium tests in their tests runner but the documentation states that the tests have to come as "HTML tables".
Selenium on the other side supports Java APIs which is much more convenient and offers all the capabilities of the normal programming language.
However I did not find anything in the Play! documentation about running Selenium tests written in Java.
Without having used Play myself, it does seem to have standard Java dependency integration for pulling libraries from a Maven repository. From what it says in the documentation, you could edit the dependencies.yml file, and add something like:
# Application dependencies
require:
- play 1.2
- org.seleniumhq.selenium -> selenium-java 2.24.1
which would allow you to use Selenium's standard Java API.
Is there a way of browsing a web site through a proxy and autogenerating Java code (using HtmlClient) that can play back the requests?
Take a look at Selenium. You can use the Selenium IDE to record a session, and then choose use the "Export" menu item to export it to Java tests. You can then use the Java Client Driver to run the tests.
Not sure what your code generation needs are. Have you looked at Apache JMeter that records test cases through a proxy and also provides interfaces for you to generate your own data.
I'm building a Spring web app and up until now all of my testing is using a browser.
This involves starting the server, opening a browser window and checking to see if accessing any of the pages causes an error.
This is starting to get repetitive and doesn't seem to be the most efficient way to do this.
Since the Junit jar file is already in my project, could it be used as an alternative to this browser testing and, if so, any tips on how to get started making JUnit simulate the act of opening a browser to access the web app?
Take a look at Selenium. It allows you to script functional tests using JUnit or TestNG and execute them in a browser, automatically.
You can use the HTMLUnit extension to script to drive the web site from JUnit.
I used a while back and worked fine for thi site I was doing then.
see http://htmlunit.sourceforge.net/
I suggest you to try the Robot Framework. This is an open source testing framework developed by engineers in Nokia Siemens Networks.
It is primarily built on python and the Selenium testing libraries. It also includes support for testing Java/J2EE server side code through Jython libraries. I personally use it in my work sometimes, and writing a test case is just as easy as describing an end-to-end flow through the use of Keywords (most of required ones are already inbuilt). You could go ahead and give this a shot if you find Selenium a li'l tough to work with. The Robot framework provides a fairly simple abstraction over raw selenium, coupled with the power to make Java/J2EE server-side calls too.
Regards,
Nagendra U M