Skip to main content
This revision made December 18, 2012 11:22, by steven.davelaar

Creating a Custom Tester Launch Page

Main Table of Contents

When testing task flows with page fragments, these task flows run within the default ADF EMG task flow tester page. However, to succesfully test your own task flows there might be situations where you need to create your own custom tester launch page. Typically, you need to create your own custom tester launch page when your task flows rely on one or more of the following definitions to be present in the surrounding web page:

  • a JSF phase listener defined with the f:view tag
  • one or ore Javascript libraries, typically defined within the metaContainer facet of the af:document tag
  • Support for multi-part requests by setting the usesUpload property on the af:form tag to true.
  • Global af:clientListener and/or af:serverListener tags

Creating a custom tester launch page, is very easy because a task flowq tester page template is provided that includes all the functionality you need to run the task flow tester. All you need to do is to launch the New JSF Page dialog in JDeveloper, and then base the page on the ADF EMG Task Flow Tester page template as shown below.

Now, you can add the definitions to your own tester page as you like. For example, you can add your own custom Javascript library as shown below.

You can now directly run this page allowing you to test your task flows with your own tester launch page which includes all the required definitions. To make things even easier, you can change the Task Flow Tester run configuration that has been added to the project to point to your custom tester launch page To do this go to Project properties -> Run/Debug/Profile. Then select the "Task Flow Tester" run configuration and click the edit icon. Using the Browse button you can change the Default Run Target to use your custom tester launch page.

.

Difference compared to previous revision
* Global af:clientListener and/or af:serverListener tags Creating a custom tester launch page, is very easy because a task flowq tester page template is provided that includes all the functionality you need to run the task flow tester. All you need to do is to launch the New JSF Page dialog in JDeveloper, and then base the page on the ADF EMG Task Flow Tester page template as shown below.[[image: CustomTesterPage.jpg| block]] Now, you can add the definitions to your own tester page as you like. For example, you can add your own custom Javascript library as shown below. [[image: CustomTesterPageJs.jpg| block]] You can now directly run this page allowing you to test your task flows with your own tester launch page which includes all the required definitions. To make things even easier, you can change the Task Flow Tester run configuration that has been added to the project to point to your custom tester launch page To do this go to Project properties -> Run/Debug/Profile. Then select the "Task Flow Tester" run configuration and click the edit icon. Using the Browse button you can change the Default Run Target to use your custom tester launch page. [[image: CustomRunConfig.jpg| block]] .
 
 
Close
loading
Please Confirm
Close