⭐ If you would like to buy me a coffee, well thank you very much that is mega kind! : https://www.buymeacoffee.com/honeyvig Hire a web Developer and Designer to upgrade and boost your online presence with cutting edge Technologies

Friday, November 7, 2025

Working with Visual Studio 2010 - Part 8

 

In part 8 I create and execute a test case and also record a bug using Test and Lab Manager, which is part of the Visual Studio 2010 suite of products.
0:00

hi my name is Julio Cal and in this

0:02

video I will show you how to prepare and

0:04

execute a test case and also how to

0:07

record a bu using the new test andl

0:09

manager that is part of the VIS Studio

0:11

2010 Suite of products remember we are

0:13

using beta 2 of Vis Studio 2010 team

0:15

Foundation server 2010 and also test and

0:17

lab manager so if you remember we H we

0:21

just created a bookstore application

0:24

that will this is a the a WPF

0:26

application that will show the list of

0:28

all available books in the bookstore

0:30

now going back to the source codee here

0:32

I just want to show you a small change I

0:34

made to the to the bookstore that

0:36

Windows project in the app. S.C source

0:39

code I just added a dispatcher and

0:42

handle exception H Handler for the

0:45

application so I would uh catch any

0:48

possible exception that comes from any

0:50

part of the application and show it in

0:53

this message box as you can see here

0:55

okay that's the only change I made now

0:57

let's close this and now let's go to

1:01

visual studio 2010 microsof test and La

1:03

maner I will right click this and run as

1:05

an administrator this is because h test

1:08

and La manager will need this

1:10

Administration permission to be able to

1:12

collect information from the machine

1:14

when we actually run the test okay very

1:17

useful information for the developer now

1:19

let's just cancel here because I want to

1:20

show you the first time experience of

1:23

this product let's go here and this is

1:26

the first screen that you you would uh

1:30

see first time you go to this product so

1:33

here you have to type to type your team

1:34

Foundation server name same as in Visual

1:37

Studio click add and now you have to

1:40

enter your credentials I will use the

1:42

tester credentials here because we're

1:44

doing the testing

1:46

stuff

1:49

Okay click okay now let's select the

1:52

default collection and the the bookstore

1:54

team Project Connect now and now in t l

1:58

manager you do have uh two steps okay to

2:02

create your tests first you have to

2:04

create a plan a testing plan and add

2:06

some test cases and later you have to

2:09

actually execute or run them to collect

2:11

some information and save your your

2:14

results so here first thing to do click

2:17

add and let's add the name for this

2:20

let's call it main plan click add select

2:25

this and then we go to the main uh user

2:28

interface of Des lab man here now here

2:31

in the left side you can see we do have

2:32

our main plan and first thing I want to

2:35

to do is to go to the

2:37

properties here this shows all the um

2:41

the information related to to this plan

2:43

so far so let's do a couple of changes

2:45

here first on iteration I will specify

2:48

we're using iteration one in test

2:51

settings I would like to change this to

2:53

local test run why because I already

2:56

modified this settings let's open this

2:59

adding a an interesting uh information

3:02

here let's go to data and Diagnostics

3:05

here you can see all the information

3:07

that you can actually collect from the

3:09

machine while you execute your test and

3:11

one very interesting addition is the

3:16

video recorder if you enable this you

3:18

can actually record a video of your of

3:21

your test you know which will be very

3:23

useful for the

3:24

developer okay so I just did that let's

3:28

click uh finish

3:31

now also H in here in configurations I

3:34

am selecting Windows 7 and IE8 you can

3:37

actually this is not default you can

3:38

actually create this configuration using

3:40

the manage hyperlink here and this is

3:42

just reference data it's not really like

3:45

uh it is detecting that you're using

3:46

Windows 7 or I8 in your machine just

3:48

reference data so now that we did this

3:51

let's save and

3:53

close Okay and now we do need to add

3:56

some um some test some require to this

4:00

so I will just click add

4:02

requirements okay and if you remember we

4:05

do have some user stories which are our

4:07

requirements for this project so with

4:09

the one that we are interested in right

4:11

now is this one as a customer I want to

4:13

see all the available books Let's select

4:16

this requirement at requirement to plan

4:18

so all all the testing test cases that

4:20

we create here will be related to this

4:23

uh to this requirement you know this is

4:25

very good for tracking now here let's

4:28

click on

4:30

uh new to add a new and test case so

4:33

let's say we want to test um view or

4:40

available Books Okay so assign it to

4:44

Rachel Green which is the

4:46

tester let's click on iteration one and

4:50

here in this in this part we have to add

4:52

some steps for this for this test so

4:54

let's add um open application

5:02

okay now as as we want to see all

5:05

available books Let's do not enter uh

5:09

book type okay and in the end let's

5:14

click search to get all available books

5:16

now we do have an expected result here

5:19

because we want to see all

5:23

available Books Okay you can see you

5:26

have you do have a different icon for

5:28

this one because we do have an exp

5:29

expected result okay and the test Runner

5:32

will validate that we actually received

5:34

this this result okay so let's save and

5:39

close Okay and we will now see the new

5:43

uh test case right here now let's switch

5:45

into the test tab because this is the

5:47

part when we actually run the test okay

5:50

and we will start collecting some

5:51

results so let's click here you can see

5:54

here is our test plan and we will now

5:56

click run

6:01

okay now that we are here we will have

6:03

to select create action recording to

6:06

collect all the information from from

6:07

the machine Let's click at start

6:10

test okay so right now the test Runner

6:13

is preparing to collect all the

6:15

information that the the application

6:17

will generate including videos and you

6:19

will see some other

6:21

stuff

6:27

okay okay now being here here let me

6:30

just do this and we will just start so

6:33

first step open application let's do

6:36

that open

6:40

application okay let wait a little

6:45

bit okay we can see application open it

6:48

so no problems let's just just click

6:50

pass in here next step do not enter a

6:53

book type so easy to do just go here we

6:57

do not type any book type so let's just

6:59

click pass for this one now next one is

7:02

the interesting one we will have to

7:03

click search and see all the available

7:05

books so let's do that click

7:07

search and now we do have a interesting

7:12

exception here so we will just say this

7:15

is a this is a bu so what we're going to

7:18

do is to collect some information from

7:20

this let's capture a rectangular

7:22

screenshot for this of course my my

7:24

screen is just not big enough right now

7:27

but let's say this is all the

7:28

information that that we just

7:30

want want right right now you can see

7:34

the screenshot is right here okay so

7:37

let's just now click close this close

7:41

application and Mark this as a fail test

7:45

so we will

7:47

say okay let's click

7:50

here application

7:52

crashed and let's click on end test okay

7:57

as we do that uh the the lab manager is

8:01

just added all the information related

8:02

to to this and we can what we can do

8:05

here also is to create a bu you

8:08

know that would be very very useful if

8:12

we can just create a book right from

8:14

here we don't have to do to go anywhere

8:16

else okay so while we are here let's

8:20

say

8:23

application crash it on

8:26

search okay let's just say

8:30

this will

8:32

be iteration one and you can see we do

8:36

have some related information here we do

8:39

have uh the steps we do have uh video

8:43

links we do have the screenshot right

8:47

here okay we do have a lot of

8:50

information logs you know all

8:52

information that would be very useful

8:54

for the developer you know and we don't

8:56

we don't have to to do anything else to

8:58

get all this information into back so

 

No comments:

Post a Comment