How to test public methods for LNThis topic describes how you can test the public layer of the BOL software, before exposing the layer to the outside world. Introduction This online manual topic is written for LN product consultants, product architects, software engineers, and test engineers that want to know how to test the public layer of a Business Object. This manual topic provides a general explanation of the test tool for the public layer and the basic procedure for testing. The test tool enables you to test the public layer of a Business Object. This test tool simulates the Infor LN Business Adapter software, which calls the public layer in a life situation. Details on the user interface of the test tool are available in the help text of the BOL Test Tool - Public Layer (tlbct3250m000) session. For details on how to test the various public methods, refer to To test the public methods at the end of this topic. The explanation in these related topics is done using the official prototype of the BOL workgroup:
Hinweis The reader of this topic is assumed to have knowledge of the BOR and the BOL. When testing the public layer, the protected layer is implicitly tested because the public layer reuses the protected layer. Procedure To test a public method, take the following steps:
After the test is completed, you can add the test to the test history to reuse the test later. Refer to History for details. History The test tool enables you to store test data. You can use this data to reuse test data that was entered previously (Request argument). In addition, the result data is stored (Response and Result argument). In addition, the history provides insight into which tests have been run in the past for a particular BOL. The history feature automates regression testing for the basic part. In the test tool, you can enter an identification number for each test case in the Test ID field. Test ID 0 (zero) is not permitted. Test cases are registered by user and stored in a company that was set up for BOR-related data. You choose this company in the Initialize Tools Add On (tlcom0200m000) session. After you start the test tool, the test case with the highest test ID number is automatically loaded.
Hinweis In the test tool BOL Test Tool - Public Layer (tlbct3250m000), you can click Update History, Copy History, or Remove History to add, update, or remove test cases that appear in the list. Company handling The test tool deals with various data sets ( companies):
Depending on the event or action requested by the user, the program switches between data sets. Constraints
To test the public methods For details on the testing of the various public methods, refer to the following topics:
| |||