The MFP emulator and performance simulator are used to test LDD solutions without a physical printer. The emulator interactively emulates an e-Task 2 printer control panel. The performance simulator lets you set parameters and quickly run multiple tests simulating either an e-Task or an e-Task 2 printer. The interactive emulator is useful for preliminary debugging, and the performance simulator is useful for comprehensive functional and stress testing.
To access the interactive MFP emulator, in the Eclipse software, click LDD SDK > MFP > Emulator (eTask2).
To access the performance simulator, in the Eclipse software, click LDD SDK > MFP > Performance Simulator.
If you are running the MFP emulator or performance simulator for the first time, then the installation window appears. To install the application, do the following:
If necessary, change the folder where you want to install the application.
If necessary, select Launch Emulator to launch the emulator or performance simulator after installation.
Click Finish.
If you selected Launch Emulator or if the MFP emulator is already installed, then the interactive MFP Emulator or MFP Simulator configuration window appears.
From the MFP Emulator configuration window, click Interactive Mode > MFP > Emulator (eTask2).
The home screen window appears, and the emulator is accessible as a printer from LMC.
Make sure that the LDD system is online.
Upload the solution to be tested in LMC. For more information, see the Lexmark Document Distributor Administrator's Guide.
Add the MFP emulator to a device group in LMC, and then discover it.
Deploy the solution, modify the home screen for the device group as necessary, and then perform a policy update.
If you include the profile on the home screen, then click the icon for the profile. If the profile does not appear on the home screen, then do the following:
From the printer home screen, do either of the following:
For e-Task 5 printers, click App Profiles.
For e-Task 2+, e-Task 3, or e-Task 4 printers, click Held Jobs > Profiles.
Click the icon for the profile.
The profile launches the associated script on an LDD server.
Type or browse to the path of a TIFF, JPEG, PDF, or PostScript file to simulate the document to be scanned.
Click OK.
To assign a default image file to appear in each Scan File dialog, click File > Properties.
Print jobs initiated by a profile are discarded by default. To enable saving print jobs:
Make sure you have run the interactive emulator at least once. The configuration that contains the settings for the interactive emulator is created automatically the first time it is run.
Locate the \Profiles\interactive\conf\ folder where the MFP emulator is installed. The default is C:\Program Files\mfpsimulator\.
Open sim-interactive.properties in a text editor.
If necessary, modify the location where print jobs are saved beside
.Change the value beside
to .If the interactive emulator is open, then close, and then restart it.
From the MFP Simulator configuration window, click File > New Configuration.
Type the IP address or host name of the LDD system in the Load Balancer IP field.
Type the profile name to execute.
Select whether to simulate an e-Task 2 or e-Task device.
Discover the performance simulator and deploy the appropriate solution in LMC:
To set the simulator to discovery mode, type
for both “Number of MFPs” and Repetitions fields.Click to save the test profile, and then click
to start the simulator in discovery mode.
Make sure the LDD system is online.
Upload the solution to be tested in LMC.
Add the performance simulator to a device group in LMC, and then discover it.
Deploy the solution and modify the home screen for the device group as necessary, and then perform a policy update.
Click to stop the simulator.
Type the number of MFPs to simulate.
Type the number of repetitions for the test.
In the Scan File field, browse to a TIFF, JPEG, PDF or PostScript file to use in simulating a scan task.
If necessary, configure advanced settings, including any answers to prompts that should be different than the default. For more information, see Configuring advanced properties.
To create a log during the test in Log4J, select Enable UI Logging.
Click to save the test profile, and then click
to start testing.
You can stop a test that is still in progress by clicking .
From the MFP Simulator, in the Advanced and Configuration tabs, you can configure advanced properties for the performance simulator, including custom prompt answers.
To save the test configuration after configuring advanced properties, click .
Property | Description | Default |
---|---|---|
The IP addresses used for emulated e-Task printers. One IP address can be used to emulate multiple e-Task printers at one IP address because the emulator can use multiple HTTP connections for e-Task printers. Multiple IP addresses are specified as a range, in the format, and each included IP address must be bound to a network adapter in the local computer. If the property is set to , and multiple IP addresses are specified, then only the first IP address is used. | Local IP address (set automatically when the simulator is started) | |
The TIFF, JPEG, PDF, or PostScript files to use in simulating the scan task. This property can contain a comma-delimited list of multiple files that are submitted together for the scan task. Note: To change the delimiter used in the list, use the property. | None | |
A comma-delimited list of answers for prompts that the profile asks for. If this property is empty, then the default response is used for all prompts. If you need to provide an answer for any prompt, then provide all answers for the applicable logic path. For more information, see Supplying answers to prompts. Note: To change the delimiter used in the list, use the property. | None | |
The number of test repetitions on each emulated printer. To enter discovery mode, use in the following properties: | ||
The number of printers to emulate. To enter discovery mode, use in the following properties:Note: We do not recommend emulating more than 250 printers. | ||
The local IP address is bound to the print listener when receiving print jobs. | ||
This property indicates whether the profile contains prompts. | ||
This property indicates whether the profile contains a scan task. | ||
The time in milliseconds allowed for a profile to run before a warning message is logged. | ||
The time in milliseconds allowed for the first prompt in the profile to show before a warning message is logged. | ||
Multiple IP addresses are used for emulating multiple e-Task printers. If set to , then only the first IP address specified in the property is used.If set to , then the number of IP addresses specified in the following properties must match: | Note: If the test is run without specifying multiple IP addresses, then this value is automatically changed to . | |
The timeout in milliseconds for reading data from the LDD system. | ||
The timeout in milliseconds for connection requests to the LDD system. | ||
For LDD 5.x, set this property to . | ||
A random file is used from the directory specified in the property for simulating the scan task.If set to , then the following properties override the files specified in the | ||
The directory where image files for scans are located if the property is set to . | None |
Property | Description | Default |
---|---|---|
A comma-delimited list of answers for prompts that the profile asks for. If empty, then the default response is used for all prompts. If you need to provide an answer for any prompt, then provide all answers for the applicable logic path. For more information, see Supplying answers to prompts. Note: To change the delimiter used in the list, use the property. | None | |
advanced.addressRange | The IP addresses used for emulated e-Task 2 printers. One IP address can be used to emulate multiple e-Task 2 printers at one IP address because the emulator can use multiple HTTP connections for e-Task 2 printers. Multiple IP addresses are specified as a range, in the format, and each included IP address must be bound to a network adapter in the local computer. If the property is set to , and multiple IP addresses are specified, then only the first IP address is used. | Local IP address (set automatically when the simulator is started) |
The number of test repetitions on each emulated printer. To enter discovery mode, use in the following properties: | ||
The number of printers to emulate. To enter discovery mode, use in the following properties:Note: We do not recommend emulating more than 250 printers. | ||
Multiple IP addresses are used for emulating multiple e-Task 2 printers. If set to , then only the first IP address specified in the property is used. | Note: If the test is run without specifying multiple IP addresses, then this value is automatically changed to . | |
The time in milliseconds allowed for a profile to run before a warning message is logged. | ||
The time in milliseconds allowed for the first prompt in the profile to show before a warning message is logged. | ||
This property determines whether WebDAV communication with the LDD system must be secure. If the LDD system is v4.4.0.2 or later, then set this property to . Otherwise, set it to . | ||
The user name used for secure WebDAV communication with the LDD system. | ||
The password used for secure WebDAV communication with the LDD system. | ||
A random file is used from the directory specified in the property for simulating scan tasks.If set to , then the following properties override the files specified in the property: | ||
The directory where image files for scans are located if the property is set to . | None | |
The TIFF, JPEG, PDF, or PostScript files to use in simulating scan tasks. Each property represents a single scan task, so properties after the property are only used for profiles that contain multiple scan tasks. Each property can contain a comma-delimited list of multiple files that are submitted together for the scan task.Note: To change the delimiter used in the list, use the property. | None |
Property | Description | Default |
---|---|---|
The profile name that is associated with the scan task. | Note: This value refers to the property. | |
Resolution for the scan task. | ||
Image format for the scan task. | ||
Bit depth for the scan task. | ||
Orientation for the scan task. | ||
Paper size for the scan task. | ||
Number of pages for the scan task. |
Property | Description | Default |
---|---|---|
The IP address range that receives print jobs from the LDD system. | Note: This value refers to the property. | |
The folder where simulated print jobs must be saved. | The /Profiles/x/conf/data/PrintJobs folder where the MFP emulator and performance simulator are installed, where x is the name of the current test profile. | |
The file extension of saved print jobs. Use one of the following: Note: Do not include a period ( ) before the extension. The extension implies the file type used. | ||
Print jobs from the LDD system are saved. | ||
The size of the thread pool to use for print jobs. |
You can supply a comma-delimited list of answers to supply for prompts asked by the profile in the setting
(for e-Task printers) or (for e-Task 2 printers). If the setting is left blank, then the default response is used for all prompts. The delimiter for the list may be changed using the setting.If you need to supply an answer for any prompt, then you must supply all answers for the applicable logic path. To specify the default answer for a prompt in the path, use
, or the answer otherwise specified by the setting. The logic path may be different depending on prompt answers, so you must plan answers for the specific path you want to take through the prompts. It may be helpful to test the path by first using the interactive MFP emulator.The following table shows the valid answer values for each prompt type:
Prompt type | Valid answer values | Default value if no default is specified by the script |
---|---|---|
Array | Zero-based array index | |
Authentication (magnetic stripe card or RFID data) | A value, separated by a colon from a colon-delimited list of key=value pairs that simulate data from a magnetic stripe card or RFID device, using the following standard keys: For example: 4444555566667777:Track2Raw=;4444555566667 777=09051010000041600000?:Track1Raw=%B444 4555566667777^USER/JOEQ^09051010000000000 000000000000000000416000000?:FormatCode=B :Track1AdditionalData=0905101000000000000 0000000000000000416000000:Track1Pan=44445 55566667777Track2AdditionalData=090510100 00041600000:Name=USER/JOE Q Note: Line breaks may be included in Authentication values. However, line breaks in the example are included only for clarity. | Empty string |
Boolean | ||
Copy | only | N/A |
CopyUI | only | N/A |
Custom VLML | only | N/A |
only | N/A | |
EmailUI | only | N/A |
Fax | only | N/A |
FaxUI | only | N/A |
Image boolean | ||
Image list | Zero-based array index | |
Image message | only | N/A |
Integer | Numeric integer | |
List | Zero-based array index | |
Message | only | N/A |
Numeric | Numeric integer | |
Password | Text string | Empty string |
Scan | None; scan prompts are handled by the and settings. Answers for scan prompts should not be included in the sequence of prompt answers. | N/A |
ScanUI | only | N/A |
String | Text string | Empty string |
You can use the Java Monitoring and Management Console (JConsole) or another JMX-enabled application to access attributes and operations of the performance simulator process during a test. The following steps detail accessing these attributes and operations using JConsole specifically, but the listed attributes and operations are the same for other JMX-enabled applications.
Run JConsole.
While a performance simulator test is running, select com.lexmark.workflow.simulator.App from the list of processes on the Local tab.
Click Connect > MBeans tab.
Expand the simulator folder, and then expand the folder for the currently running test profile.
For e-Task 2, expand the Advanced folder.
or
For e-Task, expand the Basic folder.
Select Simulation.
From the Attributes tab, you can see the following details of a running test:
ActiveMfps—This is the number of MFPs currently being emulated for the test.
BetweenClientStartUpDelaySize—This is the number of MFPs started after each interval specified by the
setting in the test profile.Cancels—This is the number of tests canceled, which is controlled by the
setting in the test profile.Failures—This is the number of tests run that did not complete successfully.
Name—This is the name of the test, which includes the test profile name; Advanced for e-Task 2 or Basic for e-Task.
PausedMfps—This is the number of paused MFPs.
RunCount—This is the total number of completed tests.
StartTime—This is the date and time when the test was started.
Successes—This is the number of successfully completed tests.
Only the BetweenClientStartUpDelaySize value can be changed from the Attributes tab.
From the Operations tab, you can perform any of the following actions by clicking the corresponding button:
getBetweenClientStartUpDelaySize—Retrieve the current setting for the number of MFPs started after each interval specified by the
setting in the test profile.setBetweenClientStartUpDelaySize—Set the number of MFPs started after each interval specified by the
setting in the test profile.getActiveMfps—Retrieve the number of MFPs currently being emulated for the test.
getRunCount—Retrieve the total number of completed tests.
getCancels—Retrieve the number of tests canceled.
getSuccesses—Retrieve the number of successfully completed tests.
getFailures—Retrieve the number of tests run that did not complete successfully.
pause—Pause the test.
getPausedMfps—Retrieve the number of paused MFPs.
addMfps—Add the number of MFPs specified for p1 to the test.
removeMfps—Remove the number of MFPs specified for p1 from the test.
shutdown—Stop the test.
getName—Retrieve the name of the test.
resume—Resume a paused test.
getStartTime—Retrieve the date and time when the test was started.