Documente Academic
Documente Profesional
Documente Cultură
NET in
TestComplete
Contents
Introduction.............................................................................................3
What is .NET?........................................................................................3
Why Do I Need Test Automation for Testing .NET Apps?....................... 4
Testing .NET Apps with TestComplete....................................................5
What .NET Controls Does TestComplete Support?................................ 6
Creating and Recording Test for .NET Applications...............................7
Object-Based Recording for .NET..................................................................... 7
Direct Access to .NET Classes.......................................................................... 7
Images Captured During Recording.................................................................. 9
Conclusion............................................................................................10
TestComplete
by SMARTBEAR
Introduction
Not surprisingly, most of the world uses a PC for surfing the web, playing video games, and line of business applications. With such a high
usage of Microsoft Windows, chances are youve developed or tested
software for the Windows platform. This could be basic Windows, Windows Server, a Windows Phone or even Windows Azure. If so, youve
probably worked with the .NET framework, which is a development
platform designed to build such apps in the C# and Visual Basic programming languages. In fact, .NET has become so embedded in the PC
world that it is a required knowledge for anyone working in the software
development industry today. Thats why weve written this eBook so
you have the knowledge and tools to test Windows applications.
What is .NET?
Before we dive right into exactly what .NET is, lets take a look at what
the development field looked like before the mainstream use of .NET
frameworks. Before .NET came into existence, the development world
was a very different place. Think of a time before peer code reviews,
way back when developers tested their own software. Development
teams worked in silos and, quite honestly, programming was close to
mayhem. You had developers developing the same code simultaneously doubling man hours spent and therefore wasting money. These
were the days when bugs wrecked havoc on programs because there
was simply too much code.
With the introduction of frameworks such as .NET and IDEs (integrated
development environment) like Visual Studio, code could be recycled
by adding it to a framework library. Platform companies began providing
developers with objects that could be used universally, leading to less
coding and increased language interoperability.
Thats what .NET is and why it is so popular for Windows based applications. It is a library of code that can be reused rather than developed
TestComplete
by SMARTBEAR
over and over again, eliminating redundancy in the software development process. Better yet, this code is insured to be safe and meet
performance standards. How about that for a full package?
Why do I need Test Automation for Testing .NET Apps?
Before we go right into how we can test .NET applications - lets list
some types of testing we would need to perform on the program in order
for it become quality software.
Functional Testing
Exploratory Testing
Regression Testing
Load Testing
Data-Driven Testing
Performance Testing
Unit Testing
For the record, there are many other types of testing but these are the
most popularif not most importanttypes of tests. These tests will
present how a program reacts to the basic operations and functionality
via user input and allow development teams to understand how a system as a whole will react under the most extreme circumstances. The
point is that depending on the app, testing .NET applications requires a
lot of technical knowledge and perseverance. Understanding what types
of tests there are and what is needed is one thing, but how can we test
this in the increased velocity of teams using Agile methodologies today?
If you think your team can test .NET applications manually in the time
allotted, all the power to you, but I personally like to sleep at night.
Applications arent being run through the same hoops they were ten or
twenty years ago. Since we need our apps to work with multiple platforms, multiple browsers, multiple environments and multiple devices,
test automation is a necessity.
With TestComplete, you can test your 32-bit and 64-bit .NET applications. TestComplete can maintain test scripts using languages VBScript
TestComplete
by SMARTBEAR
TestComplete
by SMARTBEAR
TestComplete
by SMARTBEAR
GUI frameworks:
Windows Forms (used in most .NET applications)
VCL.NET (used in Delphi for .NET applications)
Standard and third-party .NET controls. (See Support for .NET
Applications Controls.)
TestComplete
by SMARTBEAR
TestComplete
by SMARTBEAR
TestComplete
by SMARTBEAR
project option. Then you can use the captured Test Visualizer frames to
insert test commands and property checkpoints that work with windows,
edit boxes, buttons and other objects shown on an image.
If youd prefer, you can also create your tests manually using keyword
tests. Check out our eBook on how to create keyword tests here.
Conclusion
If youd like to dive deeper into the richer features of TestComplete
or need more technical knowledge on automated testing in general please visit our SmartBear site to browse through an extensive list of
tutorials and support documents. If you havent done so already, try a
free trial of TestComplete and try creating automated test scripts for your
.NET applications today.
TestComplete
by SMARTBEAR
10
SmartBear Software, Inc. 100 Cummings Center, Suite 234N Beverly, MA 01915
+1 978.236.7900 www.smartbear.com
2013 by SmartBear Software, Inc. Specifications subject to change.
SB-TC-061313-WEB