Tool for rest webservice parameterized load test - testing

I have a set of rest webservices in java, I need a tool that allows to load test them using parameters (i use windows operating system and Java or .net). I need to call 1 webservice 100 times simultaneously with different parameters.
This can be done just calling the method that is the core of the webservice, so basically I need to run a unit test many times concurrently with different parameters
Can you suggest any SIMPLE tool?
Thank you

SoapUI

Visual Studio has a load testing component. I would recommend recording a "unit test" using Fiddler2 and exporting as a Visual Studio webtest.
Visual studio will allow you to plug in parameter values from a spreadsheet, text file or database.
The downside is the Visual Studio 2010 Ultimate edition is required for this, which is not cheap.
Otherwise the old WCat may do the trick.
You could still record the exact details of the transaction using Fiddler and convert to tests using JMeter to do the load test bit.

Web Performance Load Tester. It is not specifically designed for web services, but works pretty well with them.

You can try the chrome extension "DHC Client" for testing web service. It provide a very good interface and you can also check it with test and image too. Here is link:-
https://chrome.google.com/webstore/detail/dhc-rest-client/aejoelaoggembcahagimdiliamlcdmfm?hl=en
It also store the variable value for the next time and you can also store the cases and value for future reference.

Related

upload test cases from excel to microsoft test manager 2013

In my current project we are using Microsoft Test Manager 2013. We have prepared test cases in excel. How can we upload prepared test cases from excel to MTM 2013.
Additionally to the answer by #MrHinsh:
Check Create Manual Tests using Team Web Access and look for the question Can I copy test cases and test steps from an existing Excel worksheet? in the Q&A part.
I do this using the free tool tcmimport: http://tcmimport.codeplex.com/
You can do this by copying and pasting into the test grid in the web access for TFS 2013. In the web access to to the test tab and for the test suit you want to add items to switch to grid mode. Then past in in the required format.
I recommend preparing test cases directly in Web Access or MTM. Your current workflow is a dysfunction resulting from Quality Centre use 😊.

How do I upload an Excel sheet to a SQL table in a Lightswitch web client?

I have a lightswitch project in visual studio 2013, using vb.net. I would like the user to be able to click a button and have lightswitch find an excel file, and upload that file to a sql table according to a pre-determined column mapping.
My preference was to use the Office Integration extension for visual studio, which I got working with VS 2013 by downloading it from this link: http://www.ge.tt/71iuRQv/v/0
However, the documentation and examples for office integration seem to be very heavy on getting an excel spreadsheet into a display in the lightswitch web client, rather than into the sql data table, which is where I need it. Here are the examples I've been following:
http://blogs.msdn.com/b/bethmassi/archive/2012/07/18/new-and-improved-office-integration-pack-extension-for-lightswitch.aspx
Alternatively, I have an existing stored procedure, and I can request that the server call this stored proc by sending a web API extension from the client to the server. I have this working already for other stored procs, according to examples from Beth Masi and Paul van Bladel. (Stackoverflow won't let me post the links...)
The undesirable part of this approach is that the stored proc is old, and messy.
I've searched and searched, but have yet to find anyone approach this problem for VS 2013 with lightswitch. Any useful advice?
I've used the method detailed by Matt Sampson to store word files and it works very well. Since it just stores the raw binary it should handle Excel files just as well.
If you're creating the table in LightSwitch, use the Binary Type. If you use SQL create scripts use varbinary(MAX).
You need to create a custom Silverlight dialog box to gain access to the OpenFileDialog object. Then open the file in as a FileStream.
Finally, you need to add a handler for the closed method of the control and then show the control to the user. Most likely done in a button. This needs to be done on the main dispatcher.
The code examples are in C# but I just used one of the many available translators out on the web and copy/pasted the VB.NET code.
Another option might be to consider shelling out to the DTSEXEC run-time to execute an SSIS package to perform the upload - especially if the target Excel spreadsheets have predefined layouts and content data types.
Even simpler, you might be able to use the SQL Server BULK INSERT command to get the job done - although that would require a SQL Client connection to your database.
HTH

Accessing TFS database using Vbscript

I have been assigned the task of creating a web dashboard with information I retrieve from a TFS database using the available API. Ideally I would like to create this using Vbscript as I have existing code that could easily be reused, however I am unsure if there is away of connecting to the database using VBScript, any ideas if this is achievable??
I'll admit vbscript seems like a strange choice. That said, given the TFS API (the Object Model) is a .NET assembly then as long as you can call the methods properly from your VBScript code you should be OK.
As for calling .NET from VBScript have a look at this question: How do I call .NET code (C#/vb.net) from vbScript?

How can I use external VBA source code with MS Access?

I am writing a VBA script to import data from an Access database to a remote database server. (It happens to be PostgreSQL, but I don't think that's very relevant.) At the moment, my scripts are embedded inside an Access database. However, I would like to version my scripts like I do my other source code: as plain text so SVN can give me good change tracking.
I would also prefer not to have to deliver the source files to the client for them to use the script. In other words, I would like to deliver the import tool already compiled into the Access database. Is it possible to do so?
Or am I chasing the wrong rabbit? Is there a way I can use the Access libraries without embedding any code into the Access database? My searching suggests not, but I'm open to the possibility. This is the first thing I've ever done with VBA, so there's a ton I don't know, I'm sure.
I think I was going down the wrong rabbit hole (and I think I was using a non-existent idiom). Turns out that there are some .NET interop DLLs for Office. My machine seems to have the .NET interop DLLs already installed with Office, so all I had to do was add a reference to the Microsoft.Office.Interop.Access DLL and create an application object:
var app = new Microsoft.Office.Interop.Access.Application();
I think a .NET app is going to be more suited to my needs. I'm not going to be doing a lot of Access specific things. This will allow me to have my source under version control as usual. The only downside is that any development machine (and build server, if I automate the build) will need Access installed, but that was going to happen with a VBA script, anyway.
If you don't want to do it within Access, you may want to tag this differently.
You can deliver your database to the client as an MDE file, which is a compiled and stand-alone Access database. The client will not be able to see the modules or other VBA code in this format, if that is your main concern.

Viewing Load Test Results in Web Browser/SSRS

Is there a way to view the Load test results (i.e. Load Test Summary) from Visual Studio in a web browser or generate it with the Reporting Services?
I am wondering also if there is a nice way to generate SSRS templates for comparing tests runs, like it is possible in excell add-in?
Many thanks,
Wojtek
Is this what you are looking for:
http://loadtestreports.codeplex.com/