hi my name is Julio Cal and in this
video I will show you how to prepare and
execute a test case and also how to
record a bu using the new test andl
manager that is part of the VIS Studio
2010 Suite of products remember we are
using beta 2 of Vis Studio 2010 team
Foundation server 2010 and also test and
lab manager so if you remember we H we
just created a bookstore application
that will this is a the a WPF
application that will show the list of
all available books in the bookstore
now going back to the source codee here
I just want to show you a small change I
made to the to the bookstore that
Windows project in the app. S.C source
code I just added a dispatcher and
handle exception H Handler for the
application so I would uh catch any
possible exception that comes from any
part of the application and show it in
this message box as you can see here
okay that's the only change I made now
let's close this and now let's go to
visual studio 2010 microsof test and La
maner I will right click this and run as
an administrator this is because h test
and La manager will need this
Administration permission to be able to
collect information from the machine
when we actually run the test okay very
useful information for the developer now
let's just cancel here because I want to
show you the first time experience of
this product let's go here and this is
the first screen that you you would uh
see first time you go to this product so
here you have to type to type your team
Foundation server name same as in Visual
Studio click add and now you have to
enter your credentials I will use the
tester credentials here because we're
doing the testing
stuff
Okay click okay now let's select the
default collection and the the bookstore
team Project Connect now and now in t l
manager you do have uh two steps okay to
create your tests first you have to
create a plan a testing plan and add
some test cases and later you have to
actually execute or run them to collect
some information and save your your
results so here first thing to do click
add and let's add the name for this
let's call it main plan click add select
this and then we go to the main uh user
interface of Des lab man here now here
in the left side you can see we do have
our main plan and first thing I want to
to do is to go to the
properties here this shows all the um
the information related to to this plan
so far so let's do a couple of changes
here first on iteration I will specify
we're using iteration one in test
settings I would like to change this to
local test run why because I already
modified this settings let's open this
adding a an interesting uh information
here let's go to data and Diagnostics
here you can see all the information
that you can actually collect from the
machine while you execute your test and
one very interesting addition is the
video recorder if you enable this you
can actually record a video of your of
your test you know which will be very
useful for the
developer okay so I just did that let's
click uh finish
now also H in here in configurations I
am selecting Windows 7 and IE8 you can
actually this is not default you can
actually create this configuration using
the manage hyperlink here and this is
just reference data it's not really like
uh it is detecting that you're using
Windows 7 or I8 in your machine just
reference data so now that we did this
let's save and
close Okay and now we do need to add
some um some test some require to this
so I will just click add
requirements okay and if you remember we
do have some user stories which are our
requirements for this project so with
the one that we are interested in right
now is this one as a customer I want to
see all the available books Let's select
this requirement at requirement to plan
so all all the testing test cases that
we create here will be related to this
uh to this requirement you know this is
very good for tracking now here let's
click on
uh new to add a new and test case so
let's say we want to test um view or
available Books Okay so assign it to
Rachel Green which is the
tester let's click on iteration one and
here in this in this part we have to add
some steps for this for this test so
let's add um open application
okay now as as we want to see all
available books Let's do not enter uh
book type okay and in the end let's
click search to get all available books
now we do have an expected result here
because we want to see all
available Books Okay you can see you
have you do have a different icon for
this one because we do have an exp
expected result okay and the test Runner
will validate that we actually received
this this result okay so let's save and
close Okay and we will now see the new
uh test case right here now let's switch
into the test tab because this is the
part when we actually run the test okay
and we will start collecting some
results so let's click here you can see
here is our test plan and we will now
click run
okay now that we are here we will have
to select create action recording to
collect all the information from from
the machine Let's click at start
test okay so right now the test Runner
is preparing to collect all the
information that the the application
will generate including videos and you
will see some other
stuff
okay okay now being here here let me
just do this and we will just start so
first step open application let's do
that open
application okay let wait a little
bit okay we can see application open it
so no problems let's just just click
pass in here next step do not enter a
book type so easy to do just go here we
do not type any book type so let's just
click pass for this one now next one is
the interesting one we will have to
click search and see all the available
books so let's do that click
search and now we do have a interesting
exception here so we will just say this
is a this is a bu so what we're going to
do is to collect some information from
this let's capture a rectangular
screenshot for this of course my my
screen is just not big enough right now
but let's say this is all the
information that that we just
want want right right now you can see
the screenshot is right here okay so
let's just now click close this close
application and Mark this as a fail test
so we will
say okay let's click
here application
crashed and let's click on end test okay
as we do that uh the the lab manager is
just added all the information related
to to this and we can what we can do
here also is to create a bu you
know that would be very very useful if
we can just create a book right from
here we don't have to do to go anywhere
else okay so while we are here let's
say
application crash it on
search okay let's just say
this will
be iteration one and you can see we do
have some related information here we do
have uh the steps we do have uh video
links we do have the screenshot right
here okay we do have a lot of
information logs you know all
information that would be very useful
for the developer you know and we don't
we don't have to to do anything else to
get all this information into back so
No comments:
Post a Comment