I have used TestNG & Selenium for Test UI Automation
For .NET web services testing http web requests can be used to do functional testing
Has any one tried web services automation using Nunit ? Does it support passing data parameters in XML (Data Driven Testing) like TestNG?
Any experience/guidelines with WCF / ASPX 2.0 Web services functional test automation using Nunit if you can share would be helpful
Thanks,
Siva
I like to think about Web Services, WCF Services as another kind of interface to my business logic. And I only unit test my logic.
There is nothing specific in NUnit for testing WCF or Web Services.
Related
I am working on a single-page web application built with Backbone.js, Marionette.js, jQuery, Handlebars and other front-end libraries. The application uses server APIs to interact with its back-end. I am interested in setting up and writing unit tests for the front-end logic that is growing in size and complexity.
What tools do people use in the industry to test the front-end of a web application? How difficult is it to set up and use? Is there a front-end testing framework that can be used with a Backbone.js application?
I know about mock servers and I don't want to test the front-end with those. I would like to test the JavaScript code (client logic) of a Backbone + Marionette app.
Thank you.
We are having an requirement to automate REST web services testing with jasmine node. Im pretty new to web service testing and node js as well.
What exactly we need to test in web services?
Could you please also guide in order to automate REST services testing.
Thanks,
Tanmay
A REST Web Service uses http verbs (GET, POST, PUT, PATCH, DELETE) to do various actions. So to test a web-service you need to write tests that send these requests with the appropriate data for your web-service and then examine the results. There are various test frameworks that make your life simpler.
Take a look at some simple tests I wrote for a sample REST Web-Service here.
The tests I wrote were for the purpose of running in Mocha but Jasmine should not be too different. Here is a great article on Jasmine and Mocha and the differences and similarities between them.
Is it possible to create RESTful Web Service using Hibernate in Netbeans 7.4?
I could see wizard to create RESTful Web Service using Persistence, but would like to know how it can be integrated with Hibernate?
Appreciate any help or insight.
Edit 1
I would like to know what I did is the correct method of generating RESTful web services using Hibernate.
First I generated Hibernate Entity classes using NetBeans and then I created RESTful services from Entity classes. So does this creates RESTful Web Services with Hibernate? I could see AbstractFacade classes that is almost like DAO classes
Edit 2
Screen shot for selecting RESTful Web Service from Entity classes
If you want to build a truly RESTful service, you need to build up a link relation architecture. You're going to need more than Hibernate or Netbeans to do that.
I recommend using the milestone Spring Data REST in conjunction with Hibernate's JPA implementation and Spring HATEOAS. See Spring Restbucks as an example which brings all these technologies together.
Currently I use Spring mvc to develop my we application. In future there will be a requirement to develop mobile app for this application.
In asp.net c# MVC have ability to use there web controller class as the web service. Then mobile app can use that controller class as web service.
I want to know is there an ability to use Spring MVC controllers as a we service. If yes, then how. Please explain.
You can easily write a Restful webservice using Spring MVC. The controller classes can return XML/JSON as required. It is simply a case of configuring an appropriate ViewResolver in this case a ContentNegotiationViewResolver.
This is an excellent guide which will walk you through the basics of Spring MVC as a webservice.
Is there a way to test a JAX-WS web service? Mine is in Netbeans and I'm trying to use a web service client in the test package to do it but I wonder if this is the right way.
You can use soapUI for testing the webservices, both using a GUI or command-line
http://www.soapui.org/Test-Automation/functional-tests.html
&
http://www.soapui.org/Test-Automation/integrating-with-junit.html
You can also by using netbeans test the webservices using generated tests, this is accessible by right clicking the webservice and click "test webservice", that is if you've created the web service using netbeans, if you haven't you can create a webservice from the WSDL of your web service and go from there.
If you want to use the web service client from the test package that is possible, netbeans should generate jaxb classes neccessary for testing, you would be able to drag-n-drop the methods from the client to a test class.