I've read repeatedly how VSTS 2008 Web testing can only test the post and post back between web pages and thus cannot test calling Java Script or Ajax. Is there an alternative so that I can test if my dynamically filled controls (javascript) and dynamically populated drop down list (AJAX) can are functioning correctly?
You can try the coded ui test in visual studio 2010?
Related
I am using Visual Studio 2019 Professional and have code lensing enabled. Therefore, I get an indication when the function/ method is called from another .NET/ C# class in my project.
Now, I have some JavaScript file in which there are AJAX calls which call REST API endpoints. My question is that is there any way or is there a VS plugin that allows for code lensing on AJAX calls? In other words I would like to know which methods/ functions are being called from AJAX or client-side?
Thanks for your help.
We're using MSTest with Team Services (was Visual Studio Online) builds to run our Selenium Tests and, for the failed ones, I'm taking a screenshot in the TestCleanup that added to the Test Results by using TestContext.
Now, when I'm checking the test results for the failed tests, and want to open the attachment (a .png image), Team Services is always prompting for download instead of just displaying it in the browser, which could really become a pain when you have a new build of your app and a lot stuff was changed causing multiple tests to fail.
Is there any possibility to force Team Services or the browser to open the images in the browser?
I'm open to anything from changing the type of attachment, potential "hacks" that could determine Team Services to display the image in browser, browser extensions, etc.
There isn't any option to configure this at VSTS/VSO side for now, I have help you submit a feature request on VSTS User Voice, refer to this link for details: Open attachments of test result from web portal in browser.
However, if you are using Firefox, I know there is an Open in Browser add-on which allow you to open the document from browser directly.
I'm using visual studio 2010. i'm try to do web performance test. so i've done all settings correctly. click the start recording button. that time browser was automatically opened with that particular webpage. i do some actions. but that actions scripts are not generated in in my visual studio web test. last two months ago i worked this test successfully. but now i can't get it. so please help me...
I think it depends on what kinda of API requests you want to record. For HTTP request from Internet Explorer, you should be able to record everything with Visual Studio; but for HTTPS requests or requests from other browsers other than , Fiddler is a definitely better tool to record requests instead of using only Visual Studio. This doc may be helpful to you for using Fiddler:
http://www.alexandervanwynsberghe.be/creating-a-web-performance-test-using-fiddler/
and
http://docs.telerik.com/fiddler/configure-fiddler/tasks/configurefiddler
I wish to perform performance testing(load testing) of a legacy(classic) ASP web application, which runs on IIS using VS 2010 Ultimate.
Can you please post the steps.
Thanks in advance.
There is absolutely no difference testing a classic ASP app from any other with VS 2010 Ultimate.
Trawl the Microsoft text on the subject here.
The basic process is to create/record some web tests to hit pages on your site.
Then use the load test to combine these for running against your target site.
I would like to test a Website UI.
Is it possible to record all Website clicked elements using Visual Studio 2010 (just like Selenium IDE does)?
Is there a integration between Visual Studio 2010 and Selenium in order to use Selenium auto generated C# code inside VS2010?
thank you
The way I have done this is record the test in Selenium IDE and save as C# and NUnit. NUnit asserts are almost identical to MSTest unit tests. I then paste into a Visual Studio unit test and hand modify the small number of deficiencies.
The Selenium equivalent in VS is inside the Team System / Test edition component.
The allows you to capture a "webtest" by clicking a workflow inside IE and then (if you want) running a series of these webtests as a "loadtest".
All the webtests can be run on their own or you can link a few of them together to approximate a Selenium Test Suite.
You can add a new Format for export using Options->Formats->Source (button). Copy the existing C# (Remote Control) entry and alter the java to output MSTest tests. It's pretty easy.