Visual Studio Load Testing - visual-studio

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

Related

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

Load test and Scale MVC web api service

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.

watir-webdriver result not same as manual test

... or when is a click not a click..?
I'm testing SAP Enterprise Portal using cucumber & watir-webdriver.
During manual tests I observe the portal behaving as expected.
During the cucumber tests (same user+pass) the portal behaves differently and my test fail.
To be more specific: there is a bookmark in the portal that has the correct URL during manual testing, yet during automated testing it points to "/irj/portalapps/com.sap.portal.navigation.helperservice/html/child.html". This popup is always blank...
I get this using WinXP+IE7 and Win7+IE8.
Is there any evidence of the webdriver behaving differently to a user?
I was trying to automate testing in SAP Enterprise Portal. The challenge with SAP EP is that the HTML is composed of multiple nested, dynamic <iframes> - sometimes 10+ deep! Due to this I had to abandon cucumber/watir-webdriver and I switched to HP QTP with the SAP EP plugin.
The subsequent comments I made were an attempt at sharing the gem versions - I got the formatting all wrong and they looked like some spam bot was attacking the site... I am considering deleting them, but I'm not sure if this will help.

Coverting VB.Net applications to services

I have a basic VB.Net application that gets data from some websites and then send them to a MS-SQL database automatically. I have developed it as a desktop application with a WinForm front end with logs writing to the WinForm continuously.
Now, is it possible to convert the Winform to a Windows services so that I do not need to keep it opening in front of my PC and watching the logs, instead, it runs quietly in the background and the data gets logged into the system log viewer?
Many thanks!
In Visual Studio choose File->New Project and in the Windows templates you'll see Windows Service. Choose that option and then start migrating your code. If you kept most to all of your non-UI code in a separate DLL it will be easy because then you can have your service reference that library.
The following MSDN link has step by step instructions on how to get started with Windows Services but the answer is it not possible to convert your application but you can create a new windows service and copy your code across. This should be quite trivial.
If you have a specific interval to run the project, then you can use windows schedular to have the executable invoked as per your requirement and interval. However, as answered earlier, to convert your project to win services, you need to create the windows services from scratch and what you can do is, keep your business logic classes seperate and have objects created from the component classes.

AJAX works online but not on my computer

I've been having problems testing AJAX on my computer, the code works fine online but not on my system, is there something I am missing?
I've had this problem with pretty much any kind of AJAX and even some javascript code. I know the code itself is correctly since it's functioning online as intended, but why wouldn't run on my PC? Everything I am trying to do is basic coding, no database, or advanced functions of any kind, simple interface changes and such.
I don't have any specific code to post since its a general problem i'm having, but any thoughts are appreciated. Could it be a document type issue? I tried blank and a couple of others but none seemed to matter.
Ill bet that you are having a same origin policy issue. If you are loading the page by going to localhost:<port>/app and then your javascript tries to go to anywhere other than localhost the browser will stop it for violating the policy.
I have had strange problems testing AJAX locally before. To fix this I install ultidev's Cassini web server and run the application on that and it seems to work.
You need to set up a webserver with either php running or something like it. A desktop PC is not a web server by default.

Resources