ladisney.blogg.se

What is viber messaging
What is viber messaging













what is viber messaging what is viber messaging

  • Attribute: This is the attribute that needs to be present on each method that will actually represent a TestCase.
  • Test Automation Framework: Microsoft has its Unit Testing Framework implemented in the namespace "".
  • In order to automate the Test Cases in Microsoft Visual Studio using the Unit Testing Framework, you need to understand few more things: Now once you have this project loaded, it will have a file UnitTest1.cs in it, this is the file you will be automating all the Test Cases for the MathLibrary.dll (our business logic) we have created. To do so, we will use Microsoft Visual Studio 2008 or 2010 and then open a New Test Project as shown in the image below: Hence we must achieve Test Coverage for all the Test Cases in the test scenarios specified above. If Expected meets the Actual then your Test Case has Passed, otherwise your Test Case has Failed.
  • Actual: When you perform the test what your result is.
  • Expected: Before we really perform a test our test case tells us what to expect by this test case to verify success in the case of a Sum taking two ints, we expect it to return the exact result of adding the two numbers.
  • Irrespective of what Unit Test tool and development technology you use, the test process depends on the following two things: How to approach Test Automation in general
  • If argument passed is negative then throw an exception.
  • If argument passed is 0 "zero" then throw an exception.
  • If argument is positive and non-zero then return the sum of the passed arguments.
  • the parameters passed are also being validated for all the possible test scenarios: To do so, instead of relying on a Manual Test Process through a UI that will be very cumbersome and tedious to continuously test the sanity of the business logic, we can choose to automate this test process.Īs you might have noticed, we have written the Sum function (in MathLibrary.dll) in a Test Driven style i.e.

    what is viber messaging

    Since it is a DLL component, test coverage of this is very critical to ensure that business logic is intact and returning correct results. Throw new ArgumentException( "No Zero or Negative are allowed") The source code of this MathLibrary business logic component is as in the following: I have business logic that does some math's calculation and is available in the DLL MathLibrary.dll. Framework is an architectural term and it means "collection of components".Ĭode Example of Test Automation using Microsoft Visual Studio 2010 Let's first understand what a framework is. NET has its own UnitTest framework that is separate from the NUnit or other automation testing frameworks.















    What is viber messaging