.. Copyright (C): Part of Pathways project The ATS File ************ In this part the ATS file will be explained. The ATS consists of a few parts, of which the ATS itself is the most importent, since that is the actual test. The other parts are an setup and teardown function. An ATS file can consist of one or more ATS's, setup and teardown functions. It is also possible to have a general setup and teardown function as well. Therefore, a test set can have a structure like below. Note that the ATS specific setup and teardown functions are optional. #) General setup function #) Setup 1 #) ATS 1 #) Teardown 1 ... #) Setup n #) ATS n #) Teardown n #) General teardown function ATS Function ============ In the ATS used as an example a caculator is tested, which has different functionalities, such as a login and printscreen function and off course the general functions a calculator should have. The calculator that is tested is a simple calculator. Therefore, it can only substract, add, multiply and divide whole numbers (integers). The ATS, of which parts are shown, has as goal to test the calculation functions only is shown below. .. literalinclude:: ATS_nieuwe_stijl_1.py :lines: 41-63 In this function the external test data is used to perform calculations with the calculator. The result of this calculation is compared to the expected results in the test data. Vector function =============== From the test data file, which is a comma seperated file, the test data is imported. The test data has the following structure :command:`+,2,,3`.