background preloader

Testing made easier in Internet Explorer

Testing made easier in Internet Explorer
Related:  Testing Tools

Verde Overview Verde is an integration test and application health verification framework for ASP.Net MVC. Integration tests are intended to automate verifying the different components of your application such as databases, web services, etc. are working together correctly. Unlike test runners integrated into Visual Studio or standalone applications, the Verde framework runs tests directly within your web application; leveraging the same configuration settings, security permissions, network topology, etc. This allows exposing issues that may not otherwise be encountered until an end-user actually starts using the application. Verde is intended to complement a robust suite of unit tests; the unit tests ensure all the individual units of work function correctly, while integration tests ensure everything works together. The easiest way to add Verde to your project is via NuGet - PM> Install-Package Verde Getting Started Writing Tests Basic ViewResult More Details

Pi Control: Monitoring für den Raspberry Pi - Linux und Ich Pi Control überwacht den Raspberry Pi und präsentiert die Daten in einer ansprechenden Weboberfläche.Wer Pi Control den Root-Zugang verrät, der kann über das Webfrontend seinen RasPi herunterfahren oder neu starten.Neben der Weboberfläche bietet Raspberry Pi Control auch eine moderne und schick gestaltete Android-App an. Viele von euch werden wie ich einen Raspberry Pi als kleine, stromsparende, eierlegende Wollmilchsau aufgestellt haben. Für einen Überblick über den Status des Mini-Servers kann man sich ein Monitoring mittels Munin oder Monitorix aufsetzen, was allerdings einiges an Aufwand und vor allen Dingen Ressourcen des kleinen Rechners kostet. Pi Control stammt von Willy Fritzsche, der euch auf Willy’s Technik-Blog über das Programm informiert. Lighttpd mit PHP unter Raspbian einrichten Danach könnt ihr euch mit Wget den Installer aus dem Netz herunterladen und ihn direkt im Terminal ausführen. Monitoring für den Raspberry Pi Pi Control für Android

6 free mobile device emulators for testing your site Webdesigner Depot The percentage of all web usage that comes from smartphones and other mobile devices is growing, and it won’t be long before mobile internet users overtake desktop and laptop users in terms of web traffic. So it’s a cardinal sin to ignore mobile users when you’re developing a website. One of the most important things you can do to make a website mobile-friendly is to test it on multiple smartphone and tablet platforms. Luckily, mobile emulators make it easy to do this. A mobile phone emulator lets you check the responsiveness and functionality of the website across different mobile platforms, such as iPhone, iPad, Android and BlackBerry, without actually having the devices in hand. iPad Peek To ensure your website is compatible with the most acclaimed tablet on the market, you can try it out on iPad Peek. iPhone Tester As the name suggests, iPhone Tester is one of the most popular mobile emulators for iPhones. Mobile Phone Emulator MobiReady Responsivepx Screenfly By Rohit Singhal

LuxRender - home Using a load test plugin to limit the number of tests run in a load test - Bill Barnett's blog Normally the number of iterations of the inner tests (usually web tests and unit tests) run during a Visual Studio Team System (VSTS) load test is determined by the duration of the load test. However, some users which to control the number of inner test iterations exactly. There is not direct support for this in VSTS, but it can be accomplished using a load test plugin. Note that if the load test is run on a test rig with more than one load test agent, the number of test iterations specified will be run on each of the agents. using System;using System.Collections.Generic;using System.IO;using System.Text;using Microsoft.VisualStudio.TestTools.LoadTesting; namespace Plugins{ /* This class is a sample load test plugin that allows you to limit the number of test iterations that are run during a load test. 1. * In the load test editor, select the top-most node in the load test tree. #endregion }}

Isolating Code Under Test with Microsoft Fakes Microsoft Fakes help you isolate the code you are testing by replacing other parts of the application with stubs or shims. These are small pieces of code that are under the control of your tests. By isolating your code for testing, you know that if the test fails, the cause is there and not somewhere else. Stubs and shims also let you test your code even if other parts of your application are not working yet. Fakes come in two flavors: A stub replaces a class with a small substitute that implements the same interface. Requirements Visual Studio Enterprise Typically, you would consider a Visual Studio project to be a component, because you develop and update those classes at the same time. As a general guide, use stubs for calls within your Visual Studio solution, and shims for calls to other referenced assemblies. Other considerations are: Performance. Static methods, sealed types. Internal types. Private methods. Interfaces and abstract methods.

unit testing - Mock framework vs MS Fakes frameworks Microsoft Fakes Framework in Visual Studio 2012 In Unit Testing/Test Driven Development (TDD) Isolating dependencies, sometimes referred to as “mocking objects” or “faking objects” is a norm. There are many books/articles that have been written on this topic. There are also great frameworks out there, which allow us to isolate dependencies without having to use any hand written mocks/fakes. Visual Studio 2012 new Fakes framework takes faking/mocking objects to a new level. In this article, I will explain the features of Visual Studio 2012 Fakes framework. Also please remember that, currently the Fakes framework is only available in Visual Studio Ultimate edition. ASP.NET, MVC, WPF - Grids, Charts, Reports and More. Some history behind the Fakes Framework If you have used Microsoft Moles before, you will find the Fakes framework has a very similar usage workflow. Hard to test code As you probably know, static methods by nature, are harder to test. Let’s say I want to test this method. DateTime.Now = ()=> new DateTime(2012, 12, 21); Stubs

Using Stubs and Shims to Test with Microsoft Fakes in Visual Studio 11 - Rich Czyzewski Microsoft Fakes is an isolation framework for creating delegate-based test stubs and shims in .NET Framework applications. The Fakes framework can be used to shim any .NET method, including non-virtual and static methods in sealed types. Additionally here is Wikipedia’s definition of Mock Object for reference In object-oriented programming, mock objects are simulated objects that mimic the behavior of real objects in controlled ways. A programmer typically creates a mock object to test the behavior of some other object, in much the same way that a car designer uses a crash test dummy to simulate the dynamic behavior of a human in vehicle impacts. Shim any .NET Method The real interesting part here is that Microsoft Fakes can shim “any .NET method, including non-virtual and static methods in sealed types”. Microsoft Fakes is going a level deeper by mocking objects with no preexisting interfaces and allowing statics to be mocked in the process. Architectural Implications Shims vs Stubs

Prig: Open Source Alternative to Microsoft Fakes By: @urasandesu Prig(PRototyping jIG) is a framework that generates a Test Double like Microsoft Fakes/Typemock Isolator/Telerik JustMock based on Unmanaged Profiler APIs. This framework enables that any methods are replaced with mocks. For example, a static property, a private method, a non-virtual member and so on. As of Oct 12, 2015, Released V2.0.0. Let's say you want to test the following code: using System; namespace QuickTour { public class LifeInfo { public static bool IsNowLunchBreak() { var now = DateTime.Now; return 12 <= now.Hour && now.Hour < 13; } } } You probably can't test this code, because DateTime.Now returns the value that depends on an external environment. Step 1: Install From Chocolatey Install Chocolatey in accordance with the top page. CMD C:\> choco install prig -y NOTE: Prig requires PowerShell v3.0+. Step 2: Add Stub Settings Run Visual Studio 2013(Community or more) as Administrator, add test project(e.g. Step 3: Modify Stub Settings Then, Prig Setup Session will start: <?