![]() ![]() ![]() ![]() ![]() ![]() ![]() |
BEA Workshop for WebLogic Platform provides a browser-based interface with which you can test the functionality of your business process. Using this Test View interface, you play the role of the client, invoking the business process’s methods and viewing the responses.
This step describes how to test a business process you have created in BEA Workshop for WebLogic Platform using the Test Browser tool. It includes the following topics:
BEA_HOME\wlserver_10.0\samples\domains\integration
, where BEA_HOME represents the directory in which you installed WebLogic Platform. Click Finish.This tab displays public information about your business process. Code in this area is generated automatically and 2-way editing is fully supported in the Process Language. Changes you make here will appear in the Design view.
The Overview tab displays public information about the web service, including:
This tab displays private information about your business process, such as how services are implemented on the back end, and with what version of BEA Workshop for WebLogic Platform it was created. It also displays information about log settings, such as how many log messages to keep and the number of characters after which log entries are truncated.
This tab provides a simple test environment for the public methods of your business process. You can provide parameters for a method and examine its return value. You can also track and test the different parts of a conversation.
This tab shows the XML data that is being sent to your business process when you test its XML methods. You can use this page to examine and modify the XML data that is passed to a method of your business process.
This tab provide a space for you to publish messages to channels available in channel files in your application. It allows you to test your process interactions with asynchronous events and simulate Timer, Email, File, JMS, and other event generators.
This tab allows you to view an interactive or printable graph of the deployed process type. The graphical view represents your business process and its interactions with clients and resources, such as databases, JMS queues, file systems. It shows the path taken thus far by the business process and provides additional information about the state of each node in the process. If your browser is not already configured with the SVG plug-in when you click this tab, BEA Workshop for WebLogic Platform will offer to download and install it for you.
For specific information about how to use the Test Form, Message Broker, and Process Graph tabs, see To Test the Public Methods of Your Business Process, To Test a Message Broker Channel, and To View a Process Graph.
WARNING: | As you use the Test Browser, take care to not run very large or data intensive business processes. Doing so may cause the Test Browser to fail. |
You can enter data that your business process can receive as part of a client request directly on the Test Form page. Alternatively, you can browse your file system and upload a file which contains your test data.
Note: | An input xml file URI with space is not supported in the Test Form. |
You can also enter the test data by entering (copy/paste) the content of a file into the field.
Instance instanceID is Completed.
In the preceding line, instanceID
represents the ID generated when the first method in your business process was called.
The Test SOAP tab displays the XML data that is being sent to your business process when you test its methods in the soap body field. You can use this page to examine and modify the XML data that is passed to a method of your business process.
When the business process finishes, a message similar to the following is displayed in the Message Log:
Instance instanceID is Completed.
In the preceding line, instanceID
represents the ID generated when the first method in your business process was called.
The Message Broker test tab is displayed with details of the conversation routed through your channel. The conversation id is displayed in the message log. Click any of the methods displayed in your message log to view details on the right side of the window about the external services communications (callbacks and responses).
The Process Graph tab of the Workshop Test Browser provides a SVG graph of your process as it is running. The graph represents your business process and its interactions with clients and resources, such as databases, JMS queues, and file systems.
The interactive instance graph is a fully expanded version of the view provided in the Design View. The interactive process graph requires Adobe SVG Viewer Version 3.0 or Java Batik SVG Viewer (for more information, see Requirement for the Interactive Graph). The first time you open the Process Graph tab, you will be asked if you would like to accept the Software License Agreement for the Adobe Viewer :
This viewer is not available for some configurations that the WebLogic Platform 10.2 supports. For details, please see Process Monitoring.
For detailed information about the operating systems and browsers WebLogic Platform supports, see BEA WebLogic Platform Supported Configurations.
The SVG Viewer displays the interactive view. The Process Graph Visual cues are provided to indicate node status as described in the following table:
To learn about business process tracking levels, see “Viewing and Changing Process Details” in Process Configuration.
The top panel of the Process Graph tab displays selected process properties. To learn more about the properties displayed, see “Viewing Process Instance Details” in Process Instance Monitoring.
In the Test browser, a URL is displayed in the upper-right corner of the Test Form tab. The URL you see when you launch Test View for your business process should be similar to the following URL:
http://localhost:7051/samples/myBusinessProcess
.jpd
http://
locahost:7051/
—Represents the machine name and its default listening port (7051). Specifically, this means that the request (the call to the business process) from your Test browser is intercepted by WebLogic Server on port number 7051 of your local machine.samples/
— This refers to the Web application of which the service is a part. When you create a project in WebLogic Workshop, you are also creating a WebLogic Server Web application. The project name becomes part of the URL for all Web services in that project. Keep that in mind when naming new projects so that the resulting Web service URLs are meaningful and appropriate.myBusinessProcess
.jpd
— “myBusinessProcess” is the name of the business process. “.jpd” extension is retained for the URL and it maps to “myBusinessProcess.java”. Weblogic Server is configured to recognize the JPD extension and respond appropriately by serving the request as a Web service—rather than, say, an HTML page or a JSP.
![]() ![]() ![]() |