Atlanta Mercury Users Group How to Performance Test.NET and.NET Web Services February 18, 2003 Caleb Billingsley Orasi Software.

Slides:



Advertisements
Similar presentations
Automated Submission of VA Benefit Applications and Supporting Documents Melissa Hyatt Associate University Registrar.
Advertisements

DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
What is.NET?. The Clients of.NET a) A new generation of connected application b) Microsoft.NET Framework managed execution c) Allows PCs and other smart.
Microsoft.Net Technology Sachin Shetty Vimal Amin Thomas Mullasaril Vinutna Pulavarti Software Engineering CS616 Instructor:Dr.Tappert.
ISYS 512 Business Application Design and Development with.Net David Chao.
Introduction to ASP.NET. 2 © UW Business School, University of Washington 2004 Outline Static vs. Dynamic Web Pages.NET Framework Installing ASP.NET First.
Kashif Jalal CA-240 (072) Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 2 of…
Interpret Application Specifications
J2EE vs..NET Nigam Patel. Topics Background –Web Services, J2EE and.NET Similarities Differences Conclusion –Pros and Con (J2EE and.NET)
ISYS 512 Business Application Design and Development with.Net David Chao.
Lesson 1 What is.NET Prepared by Shawn Dossie Microsoft NYIT.
Chapter 7 Managing Data Sources. ASP.NET 2.0, Third Edition2.
1 Web Services Visual C# 2008 Step by Step Chapter 30.
Tahir Nawaz Visual Programming C# Week 2. What is C#? C# (pronounced "C sharp") is an object- oriented language that is used to build applications for.
HELIA – Bite ATK36F © Tuomo Ketomäki.NET Overview.NET Programming.
Intro to dot Net Dr. John Abraham UTPA – Fall 09 CSCI 3327.
Rajeswari Indupuri Introduction to.NET Framework.
INTRODUCTION TO WEB DATABASE PROGRAMMING
A Free sample background from © 2001 By Default!Slide 1.NET Overview BY: Pinkesh Desai.
Introduction to.NET Content : – Introduction to.NET Technology – Introduction to Web Based Applications – Introduction to ASP.NET 1 By : Amrendra Sharan.
Introduction to.Net and ASP.Net Course Introduction Build Your Own ASP.Net Website: Chapter 1 Microsoft ASP.Net Walkthrough: Creating a Basic Web Forms.
CSCI 3327 Visual Basic Chapter 1: Introduction to Visual Basic
Tutorial: Introduction to ASP.NET Internet Technologies and Web Application 4 th February 2010.
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.
CIS 451: Web Services Dr. Ralph D. Westfall March, 2009.
Introduction to .Net Framework
ASP.NET INTRODUCTION INTO وزارة التربية و التعليم العالي كلية العلوم و التكنولوجيا قسم علوم الحاسوب و تكنولوجيا المعلومات اعداد الاستاذ: عبد الله محمد.
ISYS 512 Business Application Design and Development with.Net David Chao.
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
VS.NET Syllabus By Peter Huang.
ASP.NET The.NET Framework. The.NET Framework is Microsoft’s distributed run-time environment for creating, deploying, and using applications over the.
1 8/29/05CS360 Windows Programming Professor Shereen Khoja.
Architecture of.NET Framework .NET Framework ٭ Microsoft.NET (pronounced “dot net”) is a software component that runs on the Windows operating.
Meir Botner David Ben-David. Project Goal Build a messenger that allows a customer to communicate with a service provider for a fee.
C# A 1 CSC 298 Introduction to C#. C# A 2 What to expect in this class  Background: knowledge of an object oriented language of the C++, Java, … family.
Introduction to.NET Framework. .NET – What Is It? Software platform Language neutral In other words:.NET is not a language (Runtime and a library for.
Introduction to .NET Rui Ye.
Lesley Bross, August 29, 2010 ArcGIS 10 add-in glossary.
ASP.NET  ASP.NET is a web development platform, which provides a programming model, a comprehensive software infrastructure and various services required.
CIS 375—Web App Dev II Microsoft’s.NET. 2 Introduction to.NET Steve Ballmer (January 2000): Steve Ballmer "Delivering an Internet-based platform of Next.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
ASP.NET.. ASP.NET Environment ASP.NET is Microsoft's programming framework that enables the development of Web applications and services. It is an easy.
.Net Framework Web Application and Development Digital Media Department Unit Credit Value : 4 Essential Learning time : 120 hours
Component-Based Software Engineering Introduction to.NET Paul Krause.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
Introduction to VB.Net. What is.NET? A brand of Microsoft technologies A platform for creating distributed Web applications A combination of new and updated.
Rajiv and Shipra Introduction to.NET (asp.net,c#,vb)
ASP.NET The Clock Project. The ASP.NET Clock Project The ASP.NET Clock Project is the topic of Chapter 23. By completing the clock project, you will learn.
Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,
Microsoft.NET Norman White Stern School of Business.
Module 1: Getting Started. Introduction to.NET and the.NET Framework Exploring Visual Studio.NET Creating a Windows Application Project Overview Use Visual.
Intro to dot Net Dr. John Abraham UTPA CSCI 3327.
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,
Key Components of.NET Framework  Common Language Runtime  CLR at Design time  CLR at Runtime  Class Library  Assemblies  Namespaces  ASP.NET  Applications.
Module 1: Overview of the Microsoft .NET Framework
PRIOR TO WEB SERVICES THE OTHER TECHNOLOGIES ARE:.
ASP.NET (Active Server Page) SNU OOPSLA Lab. October 2005.
Module 9: Using XML Web Services in a C# Application.
Getting Started with.NET Getting Started with.NET/Lesson 1/Slide 1 of 31 Objectives In this lesson, you will learn to: *Identify the components of the.NET.
.NET Mobile Application Development XML Web Services.
ISYS 512 Business Application Design and Development with.Net David Chao.
Text Introduction to.NET Framework. CONFIDENTIAL Agenda .NET Training – Purpose  What is.NET?  Why.NET?  Advantages  Architecture  Components: CLR,
Lecture Set 1 Part B: Understanding Visual Studio and.NET – Structure and Terminology 1/16/ :04 PM.
IV&VS Capabilities. 2 V IRTUAL USER GENERATOR 3 V IRTUAL U SER T ECHNOLOGY AND ADVANTAGES  Simulates a real user  Requires less resources – machines.
A Detailed Introduction To Visual Studio.NET CRB Tech ReviewsCRB Tech Reviews introduces you to the world of Visual.
Introduction to the Microsoft.NET Framework Chris Wastchak Student Ambassador to Microsoft.
Web Development Using ASP .NET
Presentation transcript:

Atlanta Mercury Users Group How to Performance Test.NET and.NET Web Services February 18, 2003 Caleb Billingsley Orasi Software

Agenda  Introduction to.NET  How will.NET Impact Testing  Mercury.NET Support  Load Testing Windows Forms  Introduction to Web Services  Load Testing Web Services with.NET

.NET and Mercury Products

What is.NET? The.NET Framework is a new computing platform that simplifies application development in the highly distributed environment of the Internet.  Objectives of.NET: *To provide a consistent object-oriented programming environment whether object code is stored and executed locally, executed locally but Internet-distributed, or executed remotely. *To provide a code-execution environment that minimizes software deployment and versioning conflicts. *To provide a code-execution environment that guarantees safe execution of code, including code created by an unknown or semi-trusted third party. *To provide a code-execution environment that eliminates the performance problems of scripted or interpreted environments. *To make the developer experience consistent across widely varying types of applications, such as Windows-based applications and Web- based applications. *To build all communication on industry standards to ensure that code based on the.NET Framework can integrate with any other code.

.NET Framework

Uses of.NET Applications  Windows Forms Windows Forms is the new platform for Microsoft Windows application development, based on the.NET Framework. This framework provides a clear, object-oriented, extensible set of classes that enables you to develop rich Windows applications.  Web Services Web Services provide an easy to use ‘API’ that is web based to query and retrieve information such as stock quotes, airline schedules, weather, etc.  ASP.NET ASP.NET is the next generation of ASP applications for Microsoft. The single biggest advantage is compiled vs. interpreted. Resulting in greater scalability.  Web Forms Web Forms are an ASP.NET technology that you use to create programmable Web pages.  Traditional Application (CS, Web, etc)

What Does.NET mean to Testing .NET creates some new challenges. Systems are more distributed than ever and often you can’t load test every piece. You might have to build Web Service Stubs or have a developer do this to load test an application.  New correlation techniques are required for Web / browser based.NET applications  Given how distributed.NET can become, the ability to Load Test individual pieces will be essential and that will require the.NET LR Add-in  Some.NET Web Applications will require very little change in techniques to test.

How Does LoadRunner Support.NET .NET Web apps can be tested in the Normal Web Manner with a few extra correlations.  To Test.NET applications that aren’t based on a web page you will need LoadRunner.NET support. To install the add-in download from 

Mercury’s.NET Web Page

Supported.NET Environments  Includes: *Data and XML Classes (ADO.NET, SQL, Xpath, XML, etc.) *Framework Base Classes (IO, strong, net security, threading, text, reflection, collections, etc.) *Common Language Runtime (debug, exception, type checking, JIT compilers) *Core Windows Platform (Windows XP,.Net Server, Windows DataCenter)  Mercury Interactive's solutions provide support for the following configurations for Microsoft.NET Platform:

Load Testing.NET Windows Forms

Steps for Load Testing.NET Applications that don’t have Web Interface  Install MS Visual Studio.NET before LoadRunner Add-in  Install LR.NET Add-in  Create a New Project of type  Add code to call.NET Applications either with GUI or without  Add LR transaction and other LR statements  Compile and Test  Create a Vuser with compiled binary and run in Controller

Components of Visual Studio.NET Vuser Project Vuser Menu Init, Action, End Sections Solution Explorer Debug Output

Accessing LoadRunner.NET

Accessing the LoadRunner API

Tips: LoadRunner API in.NET  You can type lr. And the auto-completion will show you all the valid syntax.  Remember you can record users in VBA using the Vugen multi-protocol option. The resulting scripts could then be moved to a.NET user with minimal effort.

Exercise 1: Building your First.NET User  Install LR.NET Add-in from heva.mercuryinteractive.com/solutions/tech nologies/nethttp://www- heva.mercuryinteractive.com/solutions/tech nologies/net  Start MS Visual Studio.NET and create a new LoadRunner Virtual User Project  Add a log message to the script that prints out “Hello World, I’m load testing.NET.”.  Execute the script and view the output log file for correctness.

Testing.NET Web Services

What is.NET Web Services?  What is a Web Service?  Simply put, a Web service is an application that exposes a programmatic interface using standard, Internet-friendly protocols.  Web services are designed to be used by other programs or applications rather than by humans. Programs invoking a Web service are called clients. SOAP over HTTP is the most commonly used protocol for invoking Web services. Source:

Diagram of Client Invoking Web Service Source:

Sample.NET Web Service  To view the WSDL (Web Service Description Language) for a Web Service type in the URI with a ?WSDL at the end. Example:  To try a sample Web Service, open a web browser and type: rvices/MathService/VB/MathService.asmx rvices/MathService/VB/MathService.asmx  OR

Sample WSDL

Sample Web Service Test Page

Testing.NET Web Services  You can record Web Services if you application calls them by using the SOAP or Web Recording Protocol.  You can record a Web Service call by using your Web Browser  You can programmatically Load Test Using a LoadRunner.NET Project by using the LoadRunner.NET Add-in

Testing a Web Service with LR.NET Add-in Steps: 1. Install Visual Studio.NET 2. Install LR &.NET Add-in from 3. Create a new project that is type LoadRunner VB.NET 4. Add a Web Reference to.NET Project 5. Add Code in Visual Studio.NET to call Web Reference 6. Run User & Check Output in window (Extra: Look in source code directory. Which file will have the output from the Vuser?) 7. Compile, put together in a Vuser script and run in controller.

Step 4: Adding a Reference  Select ‘Project -> Add Web Reference’ inside Visual Studio  Paste into the Address Field: hService/VB/MathService.asmx hService/VB/MathService.asmx  Press Enter  Click ‘Add Reference’

Step 4 Explanation: Using LR.NET Add-in to Test Web Services

Step 5: Add Code to Script  In our sample we were working with a math service.  Open the Solution Explorer (toolbar)  Add the following code inside the vuser_init section (the sample should occupy one line) Dim ws As New LoadRunnerNETClass_Sample1.com.gotdotnet.samples.MathService() VS Project Name URI (Locator for Service) Method / Service

Step 6: Running your Vuser  Select ‘Build -> Build Solution’ from the menu  Run the Vuser using the ‘Vuser-> Run Vuser’ menu  After the user runs, you can check your output in the Visual Studio.NET output window or the LoadRunner Vugen log file.

TIP: Web Based.NET Recording Modes in Order of Preference  HTML Mode w User Actions (first choice) w Explicit URLs (second choice) (Non HTML – Do no record unless have correlation data)  URL Mode (create concurrent preference)  Web_custom_request  MultiProtocol Recorder  Programatic Solution with.NET Adding  Winsock (Very difficult maybe impossible.)

Resources    Msdn.microsoft.com  Learn Web Services  Great Tutorial  LoadRunner.NET Readme

Wrap-up!  Questions?  My Contact Information: