<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/tl/onlinemanual/000020" xml:lang="en">
	<Header>
		<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">How to test public methods for Infor ERP LN </Title>
		<Keyword ContextSensitive="No"><Level1>Business Object Layer (BOL)</Level1>
		</Keyword>
		<Keyword ContextSensitive="No"><Level1>
                                 Infor ERP LN Development Tools
                              </Level1>
		</Keyword>
	</Header>
	<AimSection><Paragraph class="Default">This topic describes how you can test the public layer of the <Link href="/baanerp/tt/glossary/glossary#100260" role="glossary">BOL</Link> software, before exposing the layer to the outside world.</Paragraph>
	</AimSection>
	<GeneralSection><SectionTitle>Introduction</SectionTitle>
		<Paragraph class="Default">This online manual topic is written for ERP LN product consultants, product architects, software engineers, and test engineers that want to know how to test the public layer of a Business Object.</Paragraph>
		<Paragraph class="Default">This manual topic provides a general explanation of the test tool for the public layer and the basic procedure for testing.</Paragraph>
		<Paragraph class="Default">The test tool enables you to test the public layer of a <Link href="/baanerp/tt/glossary/glossary#100032" role="glossary">Business Object</Link>. This test tool simulates the Infor ERP LN Business Adapter software, which calls the public layer in a life situation.</Paragraph>
		<Paragraph class="Default">Details on the user interface of the test tool are available in the help text of the <GUIRef href="/baanerp/tl/bct/tlbct3250m000" role="session">BOL Test Tool - Public Layer (tlbct3250m000)</GUIRef> session.</Paragraph>
		<Paragraph class="Default">For details on how to test the various public methods, refer to <Link href="#testpublicmethods" role="internal">To test the public methods</Link> at the end of this topic.</Paragraph>
		<List><ListIntro>The explanation in these related topics is done using the official prototype of the BOL workgroup:</ListIntro>
			<ListItem>Package: tl</ListItem>
			<ListItem>Module: bct</ListItem>
			<ListItem>Business Object: 790</ListItem>
			<ListItem>Name: Order</ListItem>
			<ListItem>Description: Order Control System</ListItem>
		</List>
		<Note><SectionTitle>
                                 Note
                              </SectionTitle>
			<Paragraph class="Default">The reader of this topic is assumed to have knowledge of the <Link href="/baanerp/tt/glossary/glossary#100204" role="glossary">BOR</Link> and the BOL.</Paragraph>
			<Paragraph class="Default">When testing the public layer, the protected layer is implicitly tested because the public layer reuses the protected layer.</Paragraph>
		</Note>
	</GeneralSection>
	<GeneralSection ID="procedure"><SectionTitle>Procedure</SectionTitle>
		<ProcedureList><ListIntro>To test a public method, take the following steps:</ListIntro>
			<ListItem>Start the <GUIRef href="/baanerp/tl/bct/tlbct3250m000" role="session">BOL Test Tool - Public Layer (tlbct3250m000)</GUIRef> session. To start this session, on the <GUIRef href="" role="manual">Tools</GUIRef> menu, point to <GUIRef href="" role="manual">Application Development</GUIRef>, and click <GUIRef href="" role="manual">Business Object Modeling</GUIRef>.</ListItem>
			<ListItem>Enter the <GUIRef href="/baanerp/tl/bct/tlbct3250m000#testid" role="manual">Test ID</GUIRef> and <GUIRef href="/baanerp/tl/bct/tlbct3250m000#tdesc" role="manual">Description</GUIRef>.</ListItem>
			<ListItem>Select the business object and the public method to be tested.</ListItem>
			<ListItem>Enter data for the Request argument of the selected method.</ListItem>
			<ListItem>Select attributes for the standard List and Show methods (if applicable). The Attribute selection is part of the Request argument.</ListItem>
			<ListItem>Define a Filter for the standard List and Show methods (if applicable). The Filter is part of the Request argument.</ListItem>
			<ListItem>Run the test.</ListItem>
			<ListItem>View the test results.</ListItem>
		</ProcedureList>
		<Paragraph class="Default">After the test is completed, you can add the test to the test history to reuse the test later. Refer to <Link href="#history" role="internal">History</Link> for details.</Paragraph>
	</GeneralSection>
	<GeneralSection ID="history"><SectionTitle>History</SectionTitle>
		<Paragraph class="Default">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).</Paragraph>
		<Paragraph class="Default">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.</Paragraph>
		<Paragraph class="Default">In the test tool, you can enter an identification number for each test case in the <GUIRef href="/baanerp/tl/bct/tlbct3250m000#testid" role="manual">Test ID</GUIRef> field. Test ID 0 (zero) is not permitted.</Paragraph>
		<Paragraph class="Default">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 <GUIRef href="/baanerp/tl/com/tlcom0200m000" role="session">Initialize Tools Add On (tlcom0200m000)</GUIRef> session.</Paragraph>
		<List><ListIntro>After you start the test tool, the test case with the highest test ID number is automatically loaded.</ListIntro>
			<ListItem>To start a new test case, you must enter a new test ID number. When you enter a new test ID, you must also enter a new description.</ListItem>
			<ListItem>To reuse a saved test case, zoom on the <GUIRef href="/baanerp/tl/bct/tlbct3250m000#testid" role="manual">Test ID</GUIRef> field to start the <GUIRef href="/baanerp/tl/bct/tlbct3550m000" role="session">Test History (tlbct3550m000)</GUIRef> session and select the desired test ID from the list.</ListItem>
		</List>
		<Note><SectionTitle>
                                 Note
                              </SectionTitle>
			<Paragraph class="Default">In the test tool <GUIRef href="/baanerp/tl/bct/tlbct3250m000" role="session">BOL Test Tool - Public Layer (tlbct3250m000)</GUIRef>, you can click <GUIRef href="/baanerp/tl/bct/tlbct3250m000#updatehistory" role="command">Update History</GUIRef>, <GUIRef href="/baanerp/tl/bct/tlbct3250m000#copyhistory" role="command">Copy History</GUIRef>, or <GUIRef href="/baanerp/tl/bct/tlbct3250m000#removehistory" role="command">Remove History</GUIRef> to add, update, or remove test cases that appear in the list.</Paragraph>
		</Note>
	</GeneralSection>
	<GeneralSection ID="companyhandling"><SectionTitle>Company handling</SectionTitle>
		<List><ListIntro>The test tool deals with various data sets ( <Link href="/baanerp/tc/glossary/glossary#Company.tc" role="glossary">companies</Link> ):</ListIntro>
			<ListItem>Your current company. The Business Object that is tested uses this company. For example, if you test the Create method of the Sales Order Business Object, a new sales order record is inserted in your current company. You can check your current company at the bottom-right corner of the test tool's session window.</ListItem>
		</List>
		<Figure space-and-orientation="indented-estimated"><HTML:IMG height="23" width="125" SRC="../images/nt_screen_000020a.gif" path="/enterpriseserver/tools/tl/onlinemanual" btb-count="1" btb-count2="1" btb-image-name="nt_screen_000020a.gif" btb-source-path="C:\SVN\docnl\Technology\EnterpriseServer~8.5\EnterpriseServer" btb-image-path="/enterpriseserver/tools/tl/images/nt_screen_000020a.gif" ID="IDAKVBAC" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/></Figure>
		<List><ListItem>The company that contains the test related data. The tl package uses this company to store the test case history. This company is specified in the <GUIRef href="/baanerp/tl/com/tlcom0200m000" role="session">Initialize Tools Add On (tlcom0200m000)</GUIRef> session.</ListItem>
			<ListItem>The company number that is specified in the routing attributes of the request argument ("site" attribute).</ListItem>
		</List>
		<Paragraph class="Default">Depending on the event or action requested by the user, the program switches between data sets.</Paragraph>
	</GeneralSection>
	<GeneralSection><SectionTitle>Constraints</SectionTitle>
		<List><ListItem>In the graphical browser for the Request argument, you cannot reload attributes that are deleted from the tree. If you delete one attribute too much, you must restart filling the Request argument from the beginning.</ListItem>
			<ListItem>In the graphical browser for the Request argument, you cannot delete attributes as a group or range. Attributes must be deleted one by one, which is less user friendly when dealing with many attributes.</ListItem>
		</List>
	</GeneralSection>
	<GeneralSection ID="testpublicmethods"><SectionTitle>To test the public methods</SectionTitle>
		<List><ListIntro>For details on the testing of the various public methods, refer to the following topics:</ListIntro>
			<ListItem><Link href="/baanerp/tl/onlinemanual/000020a" role="manual">How to test the Create method</Link>
			</ListItem>
			<ListItem><Link href="/baanerp/tl/onlinemanual/000020b" role="manual">How to test the Change method</Link>
			</ListItem>
			<ListItem><Link href="/baanerp/tl/onlinemanual/000020c" role="manual">How to test the Delete method</Link>
			</ListItem>
			<ListItem><Link href="/baanerp/tl/onlinemanual/000020d" role="manual">How to test the Show or List method</Link>
			</ListItem>
			<ListItem><Link href="/baanerp/tl/onlinemanual/000020e" role="manual">How to test the CreateRef method</Link>
			</ListItem>
			<ListItem><Link href="/baanerp/tl/onlinemanual/000020f" role="manual">How to test the DeleteRef method</Link>
			</ListItem>
			<ListItem><Link href="/baanerp/tl/onlinemanual/000020h" role="manual">How to test a specific method</Link>
			</ListItem>
		</List>
	</GeneralSection>
	<RelatedTopics><SectionTitle>Related topics</SectionTitle>
		<RelTopic><Link href="/baanerp/tl/onlinemanual/000020l" role="manual">Technical structure of the test tool for the public layer</Link>
		</RelTopic>
		<RelTopic><Link href="/baanerp/tl/onlinemanual/000010" role="manual">How to test protected methods for Infor ERP LN</Link>
		</RelTopic>
		<RelTopic><Link href="/baanerp/tt/onlinemanual/100107" role="manual">To Model a Business Object</Link>
		</RelTopic>
	</RelatedTopics>
</ManualTopic>
