Hi there,
I already have an standard EXE project.
1) I nstalled SimplyVBunit 4.1.4 on windows 2003
2) I Add reference to "SimplyVBUnit Framework v4.x"
3) I Add reference to "SimplyVBUnit 4.0 Type Library"
4) I Copy the "frmtestRunner.frm" file from "C:\Program Files\Microsoft
Visual Studio\VB98\Template\Projects\" to "C:\Program Files\Microsoft Visual
Studio\VB98\Template\Forms"
5) In the EXE project I add a new Form, select the "frmtestRunner"
6) To run the tests I set the Startup Object to the SimplyVBUnit
form
6) I Add test classes as shown in the example test projects
7) then in the frmtestRunner.Form_Load I add these lines:
AddTest New NumericAssertions
AddTest New StringAssertions
AddTest New ObjectAssertions
AddTest New CollectionAssertions
AddTest New TestCaseSourceUsage
AddTest New ArrayAssertions
My project doesnt have any error, when I run this application it find some errors, but I dont know what in my project is testing?
the result of test is always the same.
shall I make any change to the test classes?
I think that it doesnt test my application and it is testing some thing constant.
Regards
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Since you are using the frmTestRunner you shouldn't have a reference to the SimplyVBUnit Framework. The form will contain a component from the SimplyVBUnit Component OCX and that will also have the framework built in.
I see you have added the example test classes included with SimplyVBUnit. They are simply examples of test classes, not classes that will test your code. You need to write your own test classes that test your code. So you'll need to remove those example classes and create your own then add them to the runner the same way you added the example classes using the AddTest method in the Form_Load event.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm new in testing and I don't know how to create my own test classes?
Is there any document or reference that I can get idea from that and learn how to create test class?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There is a wiki here that you can check out to see how to get going. You can always look at the example project to see many of the ways you can write tests.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Welcome to Help
Hi there,
I already have an standard EXE project.
1) I nstalled SimplyVBunit 4.1.4 on windows 2003
2) I Add reference to "SimplyVBUnit Framework v4.x"
3) I Add reference to "SimplyVBUnit 4.0 Type Library"
4) I Copy the "frmtestRunner.frm" file from "C:\Program Files\Microsoft
Visual Studio\VB98\Template\Projects\" to "C:\Program Files\Microsoft Visual
Studio\VB98\Template\Forms"
5) In the EXE project I add a new Form, select the "frmtestRunner"
6) To run the tests I set the Startup Object to the SimplyVBUnit
form
6) I Add test classes as shown in the example test projects
7) then in the frmtestRunner.Form_Load I add these lines:
AddTest New NumericAssertions
AddTest New StringAssertions
AddTest New ObjectAssertions
AddTest New CollectionAssertions
AddTest New TestCaseSourceUsage
AddTest New ArrayAssertions
My project doesnt have any error, when I run this application it find some errors, but I dont know what in my project is testing?
the result of test is always the same.
shall I make any change to the test classes?
I think that it doesnt test my application and it is testing some thing constant.
Regards
Hello tannaz,
Since you are using the frmTestRunner you shouldn't have a reference to the SimplyVBUnit Framework. The form will contain a component from the SimplyVBUnit Component OCX and that will also have the framework built in.
I see you have added the example test classes included with SimplyVBUnit. They are simply examples of test classes, not classes that will test your code. You need to write your own test classes that test your code. So you'll need to remove those example classes and create your own then add them to the runner the same way you added the example classes using the AddTest method in the Form_Load event.
Dear Kelly,
I'm new in testing and I don't know how to create my own test classes?
Is there any document or reference that I can get idea from that and learn how to create test class?
There is a wiki here that you can check out to see how to get going. You can always look at the example project to see many of the ways you can write tests.
Thank you Kelly.