1 / 6

Generic API Test tool

Generic API Test tool. By Moshe Sapir Almog Masika Instructor Zvika Berkovic. Automatic API Test Tool Concept. Enable the developer to add metadata to the modules code Use .NET attributes to represent the metadata

penn
Download Presentation

Generic API Test tool

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Generic API Test tool By Moshe Sapir Almog Masika Instructor Zvika Berkovic

  2. Automatic API Test Tool Concept • Enable the developer to add metadata to the modules code • Use .NET attributes to represent the metadata • The metadata should contain information which will enable automatic testing of the module • Create automatic test tool that given the module and attributes can generate tests

  3. Defining Attributes: Input Output Assertion Attribute • Assertion is defined by three expressions: <P, Q, L> • If P is true before the function is run, then Q is true after the function is run, or one of the exceptions in L is thrown during execution • For double Sqrt(double x) the developer will define: • P: x > 0 • Q: ret ^ 2 = x • L = {DivisionByZero }

  4. Selecting the tested method • After the attributes were defined the user can select the method to test • The selection is done using a tree view that describes the assembly structure

  5. Defining test parameters • After tested method was selected the user can define the test parameters • The user is prompted for tests parameters according to the attributes defined on the tested method

  6. Running the tests • After defining the test parameters, the tests are executed by the generic tool • The user can examine the test results in the tools GUI

More Related