<?xml version="1.0" encoding="utf-8"?>
<Session ID="/baanerp/tl/bct/tlbct2210m000" xml:lang="en">
	<Header>
		<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">BOL Test Tool - Protected Layer (tlbct2210m000)</Title>
	</Header>
	<HelpTopic xml:lang="en"><AimSection><Paragraph class="Default">
                                 Use this session to test a protected BOL method.</Paragraph>
		</AimSection>
		<GeneralSection><ProcedureList><ListIntro>To test the protected method, take the following steps:</ListIntro>
				<ListItem>In the current session, you must specify a <Link href="/baanerp/tt/glossary/glossary#100032" role="glossary">Business Object</Link> and a method. If you click <GUIRef href="/baanerp/tl/bct/tlbct2210m000#launch" role="command">Launch</GUIRef>, the session generates a test script for the specified method.</ListItem>
				<ListItem>When the script is generated, a temporary session appears, which enables you to specify the input arguments with which the method must be tested. All possible arguments are listed in this session. Select the check boxes of the arguments you want to use. Mandatory arguments are marked with an asterisk. Click <GUIRef href="" role="manual">Continue</GUIRef> to confirm your input.</ListItem>
				<ListItem>Another temporary session is displayed that enables you to specify the values of the arguments you specified in the previous step. Click <GUIRef href="" role="manual">Test</GUIRef> to run the test script.</ListItem>
				<ListItem>A third temporary session appears that displays the output values, or the return value and error message.</ListItem>
			</ProcedureList>
			<Note><SectionTitle>
                                    Note
                                 </SectionTitle>
				<Paragraph class="Default">Refer to <Link href="/baanerp/tl/onlinemanual/000010#tester" role="manual">BOL Test Tool – Tester</Link> for details and examples on the generated temporary test sessions.</Paragraph>
			</Note>
			<GeneralSection><SectionTitle>Company handling</SectionTitle>
				<Paragraph class="Default">The test tool handles various data sets, which is visible in the company numbers displayed in the sessions. Refer to <Link href="/baanerp/tl/onlinemanual/000010#companyhandling" role="manual">Company handling</Link> for details.</Paragraph>
			</GeneralSection>
			<GeneralSection ID="developersmode"><SectionTitle>Developers mode</SectionTitle>
				<Paragraph class="Default">You can start the session in developers mode to control the test script that is run.</Paragraph>
				<List><ListIntro>If you work in developers mode, the session provides the following extra options:</ListIntro>
					<ListItem>You can monitor the program flow if you clear the <GUIRef href="/baanerp/tl/bct/tlbct2210m000#hide.details" role="manual">Hide Technical Details</GUIRef> check box. This check box is only available if you work in developers mode.</ListItem>
					<ListItem>To manually edit, compile, and run the generated test script, you can use the buttons that are available in developers mode. To compile the script in debug mode, you must select the <GUIRef href="/baanerp/tl/bct/tlbct2210m000#debug.test" role="manual">Compile Test Script in Debug Mode</GUIRef> check box.</ListItem>
					<ListItem>The field that displays the test script is changed from a display field to an input field, and you can specify another script than the one that was selected by the session.</ListItem>
				</List>
				<Paragraph class="Default">To start the session in developers mode, you must add the following line to the <GUIRef href="" role="manual">Command</GUIRef> field of your BW Configuration file: <Code>-set TMODE=1</Code>. Note that you cannot start the session in developers mode if you use the WebTop interface.</Paragraph>
			</GeneralSection>
			<Note><SectionTitle>
                                    Note
                                 </SectionTitle>
				<Paragraph class="Default">The <GUIRef href="" role="manual">Launch</GUIRef> command that is available in the initial screen generates a test script. To perform a series of tests on the same business object, for best results, click <GUIRef href="" role="manual">Continue</GUIRef> in the third temporary session, which enables you to reuse the generated script. If you return to the first screen by canceling one of the subsequent screens and then click <GUIRef href="" role="manual">Launch</GUIRef> again, the test script is generated anew.</Paragraph>
				<Paragraph class="Default">You can only specify a business object that occurs in your current <Link href="/baanerp/tt/glossary/glossary#000000000000012" role="glossary">package combination</Link>.</Paragraph>
				<Paragraph class="Default">Transactions are supported. When the return value of the method is not zero, the transaction is aborted. If the return value is zero, the transaction is committed. If a retry is necessary, a message will alert you.</Paragraph>
			</Note>
		</GeneralSection>
		<RelatedTopics><SectionTitle>
                                 Related topics
                              </SectionTitle>
			<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>
	</HelpTopic>
	<Fields><FieldHelp ID="cpac"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Package VRC</Title>
			</Header>
			<FuncDesc>The <Link href="/baanerp/tt/glossary/glossary#000000000000008" role="glossary">package</Link> code of the current <Link href="/baanerp/tt/glossary/glossary#000000000000013" role="glossary">package VRC</Link>. With the Package VRC, the system knows that you have permission for this package VRC and can ask the application dictionary information/ <Link href="/baanerp/tt/glossary/glossary#100204" role="glossary">BOR</Link> information required to perform the test.</FuncDesc>
			<SimpleSection><Paragraph class="Default">To switch to another package VRC, click <GUIRef href="/baanerp/tl/bct/tlbct2210m000#change.curpack" role="command">Change Curr PVRC</GUIRef>.</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="vers"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Package VRC</Title>
			</Header>
			<FuncDesc>The <Link href="/baanerp/tt/glossary/glossary#000000000000009" role="glossary">version</Link> of the current <Link href="/baanerp/tt/glossary/glossary#000000000000013" role="glossary">package VRC</Link>.</FuncDesc>
			<SimpleSection><Paragraph class="Default">To switch to another package VRC, click <GUIRef href="/baanerp/tl/bct/tlbct2210m000#change.curpack" role="command">Change Curr PVRC</GUIRef>.</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="rele"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Package VRC</Title>
			</Header>
			<FuncDesc>The <Link href="/baanerp/tt/glossary/glossary#000000000000010" role="glossary">release</Link> of the current <Link href="/baanerp/tt/glossary/glossary#000000000000013" role="glossary">package VRC</Link>.</FuncDesc>
			<SimpleSection><Paragraph class="Default">To switch to another package VRC, click <GUIRef href="/baanerp/tl/bct/tlbct2210m000#change.curpack" role="command">Change Curr PVRC</GUIRef>.</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="cust"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Package VRC</Title>
			</Header>
			<FuncDesc>The <Link href="/baanerp/tt/glossary/glossary#000000000000011" role="glossary">customer</Link> code of the current <Link href="/baanerp/tt/glossary/glossary#000000000000013" role="glossary">package VRC</Link>.</FuncDesc>
			<SimpleSection><Paragraph class="Default">To switch to another package VRC, click <GUIRef href="/baanerp/tl/bct/tlbct2210m000#change.curpack" role="command">Change Curr PVRC</GUIRef>.</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="cpac.desc"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Package VRC</Title>
			</Header>
			<FuncDesc>The description of the current <Link href="/baanerp/tt/glossary/glossary#000000000000013" role="glossary">package VRC</Link>.</FuncDesc>
			<SimpleSection><Paragraph class="Default">To switch to another package VRC, click <GUIRef href="/baanerp/tl/bct/tlbct2210m000#change.curpack" role="command">Change Curr PVRC</GUIRef>.</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="pacc"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Package Combination</Title>
			</Header>
			<FuncDesc>Your <Link href="/baanerp/tt/glossary/glossary#000000000000012" role="glossary">package combination</Link>. You can only select and test Business Objects that occur in your current <Link href="/baanerp/tt/glossary/glossary#000000000000012" role="glossary">package combination</Link>.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="cmod"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Module</Title>
			</Header>
			<FuncDesc>The <Link href="/baanerp/tt/glossary/glossary#100004" role="glossary">module</Link> to which the <Link href="/baanerp/tt/glossary/glossary#100032" role="glossary">Business Object</Link> belongs.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="cmod.desc"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Module</Title>
			</Header>
			<FuncDesc>The description of the <Link href="/baanerp/tt/glossary/glossary#100004" role="glossary">module</Link>.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="bobj"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Business Object</Title>
			</Header>
			<FuncDesc>The code that identifies the <Link href="/baanerp/tt/glossary/glossary#100032" role="glossary">Business Object</Link>.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="bobj.desc"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Business Object</Title>
			</Header>
			<FuncDesc>The description of the <Link href="/baanerp/tt/glossary/glossary#100032" role="glossary">Business Object</Link>.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="comp"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Component</Title>
			</Header>
			<FuncDesc>The name of the <Link href="/baanerp/tt/glossary/glossary#100032" role="glossary">Business Object</Link> component to be tested.</FuncDesc>
			<SimpleSection><Paragraph class="Default">You can use components to model recurring elements in Business Objects, for example, a recurring order line. As a result, other parts of the same Business Object, for example, the order header, are also modeled as a component.</Paragraph>
				<Paragraph class="Default">Leave this field blank if the Business Object has no components.</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="bobj.meth"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">BOL Method</Title>
			</Header>
			<FuncDesc>The protected <Link href="/baanerp/tt/glossary/glossary#100032" role="glossary">Business Object</Link> method to be tested, for example, Create.</FuncDesc>
			<Note><SectionTitle>
                                    Note
                                 </SectionTitle>
				<Paragraph class="Default">The method name is case sensitive.</Paragraph>
			</Note>
		</FieldHelp>
		<FieldHelp ID="scr.cpac"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Script</Title>
			</Header>
			<FuncDesc>The <Link href="/baanerp/tt/glossary/glossary#000000000000008" role="glossary">package</Link> of the software component that is used to perform the test. Extra information about the script type and the <Link href="/baanerp/tt/glossary/glossary#100016" role="glossary">VRC</Link> will be shown in case data is present in the function tree database.</FuncDesc>
			<SimpleSection><Paragraph class="Default">This field is read-only when the session runs in normal mode.</Paragraph>
				<Paragraph class="Default">In <Link href="#developersmode" role="internal">developers mode</Link>, however, the field becomes an input field. Therefore, you can now change the script name. In this way, you force the system to run another object. This can be useful if you made a special library for test purposes.</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="scr.cmod"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Script</Title>
			</Header>
			<FuncDesc>The <Link href="/baanerp/tt/glossary/glossary#100004" role="glossary">module</Link> of the software component that is used to perform the test. Extra information about the script type and the <Link href="/baanerp/tt/glossary/glossary#100016" role="glossary">VRC</Link> will be shown in case data is present in the function tree database.</FuncDesc>
			<SimpleSection><Paragraph class="Default">This field is read-only when the session runs in normal mode.</Paragraph>
				<Paragraph class="Default">In <Link href="#developersmode" role="internal">developers mode</Link> however, the field becomes an input field. Therefore, you can now change the script name. In this way, you force the system to run another object. This can be useful if you have made a special library for test purposes.</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="scr.cprs"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Script</Title>
			</Header>
			<FuncDesc>The identification code of the software component that is used to perform the test. Extra information about the script type and the <Link href="/baanerp/tt/glossary/glossary#100016" role="glossary">VRC</Link> appears if data is present in the function tree database.</FuncDesc>
			<SimpleSection><Paragraph class="Default">This field is read-only when the session runs in normal mode.</Paragraph>
				<Paragraph class="Default">In <Link href="#developersmode" role="internal">developers mode</Link>, however, the field becomes an input field. Therefore, you can now change the script name. In this way, you force the system to run another object. This can be useful if you have made a special library for test purposes.</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="script.info"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Script</Title>
			</Header>
			<FuncDesc>Additional information about the software component that is used to perform the test. This information is stored in the function tree database.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="hide.details"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Hide Technical Details</Title>
			</Header>
			<FuncDesc>Clear this check box to monitor the program flow, which can be useful if you want to know about the (internal) steps the tool performs, or if you want to know more about the problem that was reported. The program flow appears in a terminal emulator.</FuncDesc>
			<SimpleSection><Paragraph class="Default">By default, this check box is selected, and Infor ERP LN enables you to avoid the technical aspects.</Paragraph>
				<Paragraph class="Default">This option is only available in <Link href="#developersmode" role="internal">developers mode</Link>.</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="debug.test"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Compile Test Script in Debug Mode</Title>
			</Header>
			<FuncDesc>
                                 If this check box is selected, and you compile a test script using the <GUIRef href="/baanerp/tl/bct/tlbct2210m000#compile.script" role="command">Compile</GUIRef> button, the compilation is carried out in debug mode.</FuncDesc>
			<SimpleSection><Paragraph class="Default">This option is only available in <Link href="#developersmode" role="internal">developers mode</Link>.</Paragraph>
			</SimpleSection>
		</FieldHelp>
	</Fields>
	<FormCommands><CommandHelp ID="launch"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Launch</Title>
			</Header>
			<FuncDesc>Starts the generation of a test script for the specified method.</FuncDesc>
			<SimpleSection><Paragraph class="Default">A test session will be activated, in which you can define input arguments and enter their values and run the protected <Link href="/baanerp/tt/glossary/glossary#100032" role="glossary">Business Object</Link> method.</Paragraph>
				<List><ListIntro>The following steps are performed:</ListIntro>
					<ListItem>All information about the method and the method's arguments is retrieved from the <Link href="/baanerp/tt/glossary/glossary#100204" role="glossary">BOR</Link>.</ListItem>
					<ListItem>A script is created.</ListItem>
					<ListItem>The content is created based the input and output arguments of the method.</ListItem>
					<ListItem>The script is compiled.</ListItem>
					<ListItem>The object is executed.</ListItem>
				</List>
			</SimpleSection>
		</CommandHelp>
		<CommandHelp ID="change.curpack"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Change Curr PVRC</Title>
			</Header>
			<FuncDesc>Starts the <GUIRef href="/baanerp/tt/adv/ttadv0140s000" role="session">Change Current Package VRC of User (ttadv0140s000)</GUIRef> session. Changing your current <Link href="/baanerp/tt/glossary/glossary#000000000000013" role="glossary">package VRC</Link> is useful if you want to test a <Link href="/baanerp/tt/glossary/glossary#100032" role="glossary">Business Object</Link> from another <Link href="/baanerp/tt/glossary/glossary#000000000000008" role="glossary">package</Link>.</FuncDesc>
		</CommandHelp>
		<CommandHelp ID="edit.script"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Edit</Title>
			</Header>
			<FuncDesc>Starts the editor to edit the generated test script.</FuncDesc>
			<SimpleSection><Paragraph class="Default">This option is only available in <Link href="#developersmode" role="internal">developers mode</Link>.</Paragraph>
				<Paragraph class="Default">You can use this option to program extra functionality, or solve (rare) compilation problems, if the test tool is not able to generate a perfect test script.</Paragraph>
			</SimpleSection>
		</CommandHelp>
		<CommandHelp ID="compile.script"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Compile</Title>
			</Header>
			<FuncDesc>Compiles the test script that you edited.</FuncDesc>
			<SimpleSection><Paragraph class="Default">This option is only available in <Link href="#developersmode" role="internal">developers mode</Link>.</Paragraph>
				<Paragraph class="Default">Use this option after you modify the test script, or if you want to examine the test script by means of the debugger.</Paragraph>
			</SimpleSection>
		</CommandHelp>
		<CommandHelp ID="run.script"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Run</Title>
			</Header>
			<FuncDesc>Runs the test script.</FuncDesc>
			<SimpleSection><Paragraph class="Default">This option is only available in <Link href="#developersmode" role="internal">developers mode</Link>.</Paragraph>
				<Paragraph class="Default">Use this option after you have compiled the test script. You can also use this option to restart scripts that are automatically generated (the system assumes that all necessary files are still present).</Paragraph>
			</SimpleSection>
		</CommandHelp>
	</FormCommands>
</Session>
