Load test and Scale MVC web api service - asp.net-web-api

I would like to load test my MVC web api and get the best hardware configurations or number of load balanced servers to achieve specific number of concurent requests.
But I do not know where to start. Can someone point me in the right direction?

As regards to ASP.NET Web API, the steps are pretty straight forward.
create a unit test project for your web api method(s). check this out
add a load test to the test project check this out
perform the load test in the cloud. Take a look at this and this.
Note that the last step requires that you have visual studio ultimate and a visual studio online account. Your visual studio online account gets you 15,000 user minutes free every month to load test your app. You should be able to glean useful information in the test results to help in your decisions e.g how many VM instances you might need, etc.

Related

Simplest Visual Studio project to make calls to a web service

I was wondering what currently is the lightest VS project to make calls to a web API and that can be hosted on IIS? From what I see available, I can either do an ASP.NET WebApp or WCF Service Application. However I'm not sure which one would be considered overkill for something that will only interact with Active Directory and make a few calls a day.
edit: After reading this SO Question and the provided link to an official comparison I realize it's pertinent to note that half of the calls to to be made will be triggered through a browser.
None would be overkill for that. However, a WCF service application will be much lighter for your specific use case.

Why is my App Insights not recording data?

I'd like to set up App Insights on a .NET Core API project I have.
I've been following a couple articles, this simple one with setup steps here: https://learn.microsoft.com/en-us/azure/azure-monitor/learn/dotnetcore-quick-start
And the more in-depth: https://learn.microsoft.com/en-us/azure/azure-monitor/app/asp-net-core
I have everything set up and registered correctly
But I can't get any data to show up, either in Azure or in Visual Studio's App Insights Search
The steps to setup seem pretty straightforward and I haven't missed any steps - any good reasons why no data is showing up?
As per your description, there seems no configuration error in your site since you can see the telemetry data is sent via visual studio output.
There are some things you need to check:
In application insights search:
1.please make sure the time range is selected as a proper value, like last hour or last 30 minutes.
2.For the types, select All.
And also note that, there is always some minutes delay for the data to be displayed on azure portal.
If you want to get more infor, then in appsettings.json, you should change Warning to Information

Visual Studio Load Testing

I've created a Web Performance Test in Visual Studio 2013. The test logs into my website, basically adds some items to my database, and then sends an email out to the user. Everything works great.
Now, when I run this same performance test as part of a Load Test, it appears to run fine with no errors, but there is no data in the database and no emails are sent.
So, does the Load Test actually update the database or send emails? Or does it someone need to be enabled?
Again, it works great as a Web Performance Test, just missing something as a Load Test and I'm not sure what.
Thanks in advance,
Randy

Testing VXML Applications in a Application Simulator

I am looking for a solution to simulate vxml application in a desktop/web browser.
Challenge
i have few hundreds of unit test cases in every new vxml application development.
it is not possible to always make a test call to test every single unit test cases i have. if i can test vxml application in a simulator it will be more easy to test it..
i am aware of that avaya Dialog designer/AAOD have a feature to test application in their inbuild Application simulator which comes with AAOD/DD Eclipse package but this tool can run AAOD/DD projects in workspace alone.
Please refer : Chapter 16 in Avaya dev guide
AAOD's Tool looks like this
is it possible to customize to use this tool to simulate static VXML / Nuance NDF based VXML application ?
or any other tools available ?
Unit testing of IVR applications is challenging and it is near impossible to hit ever possible path in the call flow for an application of any size. I am not aware if you can customize Avaya's tool for your needs. But there is a product out there that may fit some of your requirements. It is Voiyager by Syntellect. It looks like they have a free trial now if you want to try it out. I saw a demonstration of it at SpeechTEK a few years ago and it was pretty impressive. The only reason I did not pursue it at the time is that it was pretty pricey.
Avaya od/dd is a platform dependent tool(IDE) where you can create (vxml+java), test and debug application in the tool. But code which is created outside(Avaya OD/DD tool) the environment is not possible. Because code generated in avaya OD is java format, while executing in the voice browser it is converted into vxml for that u need to give webLM a license to avaya tool.You can use some ivr automation tools like hammer etc.But you need to pay for the software.
VXML apps are just WARs. The only session information transferred between invocations of pages is the session id. We have used Apache JMeter to create apps.
What you can do it try and see if what you want to do can be done via the web browser, by going to http://<server>/<Application/Start there fill the boxes you require (most of the time just filling the ones marked ANI and DNIS will be enough). If your call can be tested this way you can use the tools for web testing, without using Orchestration Designer.
If your app has a CTI/AES connector you may not be able to do this, because the web server tries to connect to AES upon submitting the first page.
As stated above , there are things that cannot be unit tested .
Nuance NDF and SVF applications come with test pages where you can simulate the call flow ; similar tools exit for grammars .

Microsoft UITesting Automation Engine Information

I am using Microsoft.VisualStudio.TestTools.UITesting to hand-code automated tests for a Silverlight web application. I am running into an inconsistent failure problem, and I need to understand what visual studio is doing when it runs a test.
Where can I find detailed technical information on the testing framework/engine in Visual Studio? Or to state more specifically, I am looking for information on what is going on 'behind the scenes' when I run a test.
Since you didn't specify any specific information that you are looking for, I'll link you to a couple of "portal" pages that I tend to have good luck with when searching for Coded UI information.
The first one is here: http://blogs.msdn.com/b/mathew_aniyan/archive/2009/12/10/content-index-for-coded-ui-test.aspx, it's also got some links to some blogs of Microsoft employees who specialize in the Coded UI testing framework.
The second one is a bit smaller, but the links are a bit more organized: http://msdn.microsoft.com/en-us/library/dd286726(VS.100).aspx.
I hope you find something useful on one of these.

Resources