 Visual Studio has great support for building ASP.NET web applications  Real web application development involves more than just copying the files created.

Slides:



Advertisements
Similar presentations
Module 1: Introduction to SQL Server Reporting Services.
Advertisements

11 Getting Started with ASP.NET Beginning ASP.NET 4.0 in C# 2010 Chapters 5 and 6.
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
Lesson 18: Configuring Application Restriction Policies
MCDST : Supporting Users and Troubleshooting a Microsoft Windows XP Operating System Chapter 15: Internet Explorer and Remote Connectivity Tools.
Chapter 7 Managing Data Sources. ASP.NET 2.0, Third Edition2.
Maintaining and Updating Windows Server 2008
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 11 Managing and Monitoring a Windows Server 2008 Network.
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 7 Configuring File Services in Windows Server 2008.
Passage Three Introduction to Microsoft SQL Server 2000.
Using Microsoft SharePoint to Develop Workflow and Business Process Automation Ted Perrotte National Practice Manager, Quilogy, Microsoft Office SharePoint.
MSF Testing Introduction Functional Testing Performance Testing.
Enterprise Reporting with Reporting Services SQL Server 2005 Donald Farmer Group Program Manager Microsoft Corporation.
Microsoft ® Official Course Monitoring and Troubleshooting Custom SharePoint Solutions SharePoint Practice Microsoft SharePoint 2013.
Course 6421A Module 7: Installing, Configuring, and Troubleshooting the Network Policy Server Role Service Presentation: 60 minutes Lab: 60 minutes Module.
WEB329 ASP.NET: A Lap Around the New Enhancements for Web Developers in Microsoft Visual Studio 2005 Omar Khan Lead Program Manager Web Platform and Tools.
INTRODUCTION TO WEB DATABASE PROGRAMMING
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Introduction to HP LoadRunner Getting Familiar with LoadRunner >>>>>>>>>>>>>>>>>>>>>>
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
A Scalable Application Architecture for composing News Portals on the Internet Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta Famagusta.
Deployment of web Site. Preparing the web site for deployment you now have two versions of web site 1 -one running in the production environment 2-one.
DONE-10: Adminserver Survival Tips Brian Bowman Product Manager, Data Management Group.
Hands-On Microsoft Windows Server 2008 Chapter 1 Introduction to Windows Server 2008.
TechEd /22/2017 5:40 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Copyright 2000 eMation SECURITY - Controlling Data Access with
Introducing Reporting Services for SQL Server 2005.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
11 MANAGING AND DISTRIBUTING SOFTWARE BY USING GROUP POLICY Chapter 5.
Module 10: Monitoring ISA Server Overview Monitoring Overview Configuring Alerts Configuring Session Monitoring Configuring Logging Configuring.
1 Data Bound Controls II Chapter Objectives You will be able to Use a Data Source control to get data from a SQL database and make it available.
McGraw-Hill © 2009 The McGraw-Hill Companies, Inc. All rights reserved. Programming with Visual Web Developer Chapter 9.
The Web Architecture and ASP.NET. Slide 2 Review of the Web (1) It began with HTTP and HTML, which delivers static Web pages to browsers which would render.
DEV325 Deploying Visual Studio.NET Applications Billy Hollis Author / Consultant.
Introduction to the Adapter Server Rob Mace June, 2008.
Module 5: Configuring Internet Explorer and Supporting Applications.
Are you getting the benefits from ASP.NET and AJAX? Introduction to the CTC ASP.NET Webforms Generator.
Week #3 Objectives Partition Disks in Windows® 7 Manage Disk Volumes Maintain Disks in Windows 7 Install and Configure Device Drivers.
ASP.NET OPTIMIZATION. Why Optimize? $$$ Whether you build applications for customers or not, enhanced applications save money.
Database Handling, Sessions, and AJAX. Post Back ASP.NET Functionality The IsPostBack method in ASP.NET is similar to the BlackBerry.refresh method –IsPostBack.
Module 2: Using Microsoft Visual Studio.NET. Overview Overview of Visual Studio.NET Creating an ASP.NET Web Application Project.
WEB320 Migrating ASP.NET 1.x Applications to ASP.NET 2.0 Stefan Schackow Program Manager Web Platform and Tools Team Microsoft Corporation.
VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview VITALE, CATURANO & COMPANY LTD SharePoint Developer Series – Web Part.
ASP.NET in Definition: 1.ASP.NET is a web application framework developed and marketed by Microsoft to allow programmers to build dynamic web sites,
Page 1 Printing & Terminal Services Lecture 8 Hassan Shuja 11/16/2004.
Deploying Software with Group Policy Chapter Twelve.
Configuring and Troubleshooting Identity and Access Solutions with Windows Server® 2008 Active Directory®
IT System Administration Lesson 3 Dr Jeffrey A Robinson.
Performance Testing Test Complete. Performance testing and its sub categories Performance testing is performed, to determine how fast some aspect of a.
Configuring and Deploying Web Applications Lesson 7.
Extending SharePoint through Web Parts and ASP.NET 최승현 대리 한국마이크로소프트.
Module 6: Administering Reporting Services. Overview Server Administration Performance and Reliability Monitoring Database Administration Security Administration.
Institute for the Protection and Security of the Citizen HAZAS – Hazard Assessment ECCAIRS Technical Course Provided by the Joint Research Centre - Ispra.
SQL Server 2012 Session: 1 Session: 4 SQL Azure Data Management Using Microsoft SQL Server.
Workflow in Microsoft Office SharePoint Server Jessica Gruber Consultant Microsoft Corporation.
Integrating and Extending Workflow 8 AA301 Carl Sykes Ed Heaney.
1 BCS 4 th Semester. Step 1: Download SQL Server 2005 Express Edition Version Feature SQL Server 2005 Express Edition SP1 SQL Server 2005 Express Edition.
Planning Server Deployments Chapter 1. Server Deployment When planning a server deployment for a large enterprise network, the operating system edition.
Maintaining and Updating Windows Server 2008 Lesson 8.
Cofax Scalability Document Version Scaling Cofax in General The scalability of Cofax is directly related to the system software, hardware and network.
ASP.NET 2.0 Mohammed Abdelhadi Developer.NET Evangelist Microsoft Corporation.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
SmartCenter for Pointsec - MI
Featured Enhancements to the IDE & Debugger
Jon Galloway | Tech Evangelist Christopher Harrison | Head Geek
Multi-host Internet Access Portal (MIAP) Enhancement Guide
Configuring Internet-related services
Lecture 34: Testing II April 24, 2017 Selenium testing script 7/7/2019
Introduction to ASP.NET Parts 1 & 2
Presentation transcript:

 Visual Studio has great support for building ASP.NET web applications  Real web application development involves more than just copying the files created in Visual Studio  In this session we look at the issue of deploying and testing ASP.NET applications

 The sample application › Self-contained slice of large web application › Interacts with web services › Retrieves data from database › User authentication

Production Database Test Database Web Application Staging Web Server Developer’s Workstation Web Application Production Web Server Web Application

 Different configurations are required for development, testing and production › Development  Local test web server, debugging, (local)test data, full source, editing support, local services › Testing  IIS, debugging?, source?, shared test data, distributed services › Production  No debugging, fully optimised, production data stores, enhanced security

 Add-on for Visual Studio which offers › Pre-compilation of ASP.NET sites › Flexible options for generating compiled assemblies from a Web project › Control over assembly naming, versioning and signing › Ability to exclude, add, and transform files and directories during builds › Modification of settings in the Web.config file › Generation of MSI installer setup  Tied to configuration settings of Web project  Really useful in building real-world web applications

 Source files pre-compiled into assemblies › One assembly per page › Single assembly for all pages  Compiled site can be › Updateable  Page markup shipped with site  Useful for intra-organisation sites which may need modification after deployment › Non-updateable  Page markup compiled into assembly(s)  Useful for ‘boxed’ applications where end-user should not be able to modify site

 Arbitrary sections of Web.config file can be modified for each build configuration › External file contains specific replacement for each build › WDP options specify which configuration sections should be replaced  Useful for › Changing connections strings (e.g. database) › Disabling debugging for production release

 Creating a Web Deployment Project  Setting build options › Output format › Assembly naming, versioning and signing  Modifying configuration settings  Creating an installer

 Replacement config files show up in deployed application › Combine WDP with custom MS-Build tasks ( )  Compiling sites to a single assembly and making them non-updateable can cause problems when › Minor (markup) layout errors need fixed  App must be recompiled and redeployed › Obfuscation used to protect IPR  Metadata removal/type renaming by obfuscator can cause problems in locating types when ASPX pages are removed  Using updateable pages requires code-behind types to maintain their names

 Pros › No source or markup deployed to site allows for protection of intellectual property › Secure – site can be made non-updateable › Performance – precompilation avoids compilation overhead on initial page load  Cons › Must deploy all at once; can’t upgrade part of the application › Can’t compile applications with sub-virtual directories › Can interfere with continuous service as large sites are deployed (due to assembly swapping)

 Testing is key to › Verifying web application functionality  Web unit tests › Verifying that non-functional requirements (e.g. performance, scalability) have been met  Load tests (makes use of web unit tests)  Automated testing is required  Visual Studio supports both kinds of testing against arbitrary web sites › Can be performed automatically as part of daily build cycle

 Black-box approach › Verifies expected page behaviour (i.e. output) when supplied with known input  Web Test Recorder › Create web test by interacting with web site in Internet Explorer › Recorder captures interactions to create test › Can capture timing information (think times)  Gives more accurate simulation of user behaviour › Can configure test parameters to be retrieved from a database

 Recording Web tests  Executing Web tests  Using parameterised tests

 Stress-testing of application by simulating multiple users accessing site › Thousands of simultaneous users › Users performing different actions  Load testing enables › worst case performance evaluations › investigation of application performance under different conditions › comparative evaluation of design alternatives to allow optimisation  Goal of load testing is to exercise application under conditions that are as close as possible to those the application will experience in real use before it goes live  Volume of users, traffic patterns and user behaviour, mix of browsers, network characteristics

Application under test Test Scripts Test Controller Test Agent

 Users do a variety of things with a web application at the same time  Load testing can simulate this by using multiple web tests › Create web tests for each of the user activities › Select web tests to include in the load test scenario › Alter the mix (ratio) of tests to produce an activity mix similar to the real usage scenario

 Users access your site from a range of browsers; load tests can simulate this  Out-of-box emulation support › IE 5.5, IE 6, Netscape, Pocket IE  Custom browser types can be added › Create additional browser config file in C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\Templates\LoadTest\Browsers › Obtain browser settings by opening in browser you wish to emulate. Copy settings to config file

 Users access application from a variety of different networks › LAN, Broadband, Dial-up, etc  Load testing can simulate the effect of the different network bandwidths › Allows evaluation of performance experienced by client on particular types of network

 VS can simulate › Fixed user load accessing the site  Not representative of real traffic but useful for worst case analysis › Load varying over time  Ramp up from initial load to a maximum load  Think times recorded in web tests can be used to make timing of simulated web requests as close as possible to real traffic

 Monitoring of Windows performance counters is key to understanding the performance of your application  Performance counters exist for › OS (CPU/memory/IO,etc),.NET CLR, ASP.NET, IIS, SQL Server, VS testing framework › Test framework counters are monitored by default  Counters can be monitored across local and remote machines

 Show performance counters over time in graphical or tabular form

 Creating a test results repository  Creating a load test  Executing the tests  Viewing live performance data  Post-test analysis

 Web Test Recorder works well with standard ASP.NET applications › Cannot properly record interactions with applications that use AJAX => test failures  Download and use Fiddler2 to record tests for AJAX applications › Add the tests created by Fiddler to the test project › Run web/load tests as normal

 In this session we have seen how features of Visual Studio can be used to build real world web applications › Web Deployment Projects  used to control the building of web applications for testing and production › Web and load testing  used to verify the functionality and performance of Web applications

 Web Deployment Projects add-in us/asp.net/aa aspx Web Deployment Projects add-in  Using Web Deployment Projects with Visual Studio Using Web Deployment Projects with Visual Studio 2005  Web Deployment Project Enhancement Web Deployment Project Enhancement  Fiddler, Fiddler,  The Science of Web Site Load Testing load_testing_savoia.pdf The Science of Web Site Load Testing  Web Test Authoring and Debugging Techniques us/dnvs05/html/WTAuthDebug.asp Web Test Authoring and Debugging Techniques  Extending Load Testing Browser Support 832c09e99527.aspx Extending Load Testing Browser Support