test automation - cpttm · •coded ui test and web performance / load test •generate code from...

36

Upload: others

Post on 27-Jul-2020

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation
Page 2: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation
Page 3: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation

Test Automation

Page 4: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation

generalist specialist

manual

testing

some

scripting

creates scripts

to set up lab,

create data

strong

scripting skills

some

coding skills

strong coding

develops fully

automated

testing

procedures

expert

coding skills

Tester Segmentation

black box testing

white box testing

api testing

70% of testing happens

here

majority of test tools

target here

Page 5: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation

VS2013 Ultimate

Page 6: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation
Page 7: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation

Microsoft Test Manager

Page 8: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation

iteration 1 iteration 2 release iteration

feature a feature b feature c feature d

unit

testing

manual

testing

regression

testing

performance

testing

feature a

Page 9: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation
Page 10: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation
Page 11: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation

data adapter description

actions use to collect each UI action you perform as you run a test

(for client roles only)

asp.net client proxy for

intellitrace and testimpact

use for web applications when you select intellitrace or

testimpact for a server role (use on client to web server)

eventlog use to capture event log data (for client or server roles)

intellitrace use to collect exceptions and specific diagnostic tracing

information to help isolate bugs that are difficult to reproduce

(for client or server roles)

network emulation use to emulate slower networks when you run your tests (for

client or server roles)

system information use to collect system information for a machine (for client or

server roles)

test impact use to collect information that can help you decide which

tests to rerun based on changes made to an application for a

specific build (for client or server roles)

video recorder use to create a video recording of your desktop session while

you run a test (for client roles only)

Page 12: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation
Page 13: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation

Performance Profiling

Full feature profiling support

Hot Path: the list of functions that are doing the most work

Summary Timeline provides an overview of code performance

Page 14: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation

Profiling Methods

•Gathers information at intervals (clock cycles)

•No code modifications

•Use this for first pass explorationsSampling

•Modifies your code

•Gathers detailed timing and count informationInstrumentation

•Multi-threaded code profilingConcurrency

•Object creation

•Garbage collection.NET Memory

•Interaction between your application and SQL Server via ADO.NETTier Interaction

Page 16: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation
Page 17: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation
Page 18: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation
Page 19: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation

Web Performance Test?

Page 20: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation

Load Modeling & Testing

Page 21: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation

Load Modeling

Page 22: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation

Data-driven

Page 23: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation
Page 24: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation

What are Load Tests?

Page 25: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation

Two ways to run load tests

Page 26: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation
Page 27: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation

Load generated on-premises – traditional approach

Application under test

Visual Studio Test Controller

Test Agent

Report Data

Test Data

Performance Data

Test

Test

Test

SQL Server

Visual Studio Load Testing

Page 28: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation

Application under test

Visual Studio Test Controller

Test Agent

Report Data

Test Data

Performance Data

Test

Test

Test

SQL Server

Load generated by agents in the cloud, controller on-premises

Visual Studio Load Testing with Azure

Page 29: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation

Analysis & Extensibility

Page 30: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation
Page 31: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation

Team Foundation Server (TFS) Features

Page 32: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation
Page 33: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation

Email Alerts

Page 34: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation

TFS Reporting

Page 35: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation

Visual Studio Automated Testing

• Coded UI Test and Web

Performance / Load Test

• Generate code from action

recordings

• Replay and assert

• Extensible

• Integrated with Team

Foundation Server

• Bug Tracking

• Continuous, scheduled builds

and tests

Page 36: Test Automation - CPTTM · •Coded UI Test and Web Performance / Load Test •Generate code from action recordings •Replay and assert •Extensible •Integrated with Team Foundation

Summary