Wednesday, June 10, 2015

Testing ADF application using ADF EMG Task Flow Tester

ADF EMG Task Flow tester is a web based testing tool for ADF applications. It can be used to test task flows with pages and task flow with fragments. Task flows can be tested independently.

A sophisticated mechanism is also provided to specify task flow parameters.

ADF EMG task Flow Tester can help you in a number of ways:
  • It allows you to unit test your task flows in complete isolation, ruling out dependencies with other task flows when finding and investigating issues.
  • It allows you to quickly test various combinations of task flow input parameter without redeploying the application
  • It keeps your application cleaner (and saves time) as you no longer need to create separate test pages for each and every bounded task flow with page fragments that you used to create before.
  • You can use the tester to simulate a call to your task flow so you can easily test task flow return values and the return navigation outcome.

Configuring ADF Task Flow Tester:

Installing ADF Task Flow Tester:

Open "Check for Updates" by selecting from Help menu in JDeveloper




You can also use install from local file. Download the zip file from below location



Once you download the zip file, open JDeveloper and select "Check for updates" from Help Menu and select the "Install from Local File" checkbox and browse the downloaded zip file.


Restart the JDeveloper for changes to take effect. The ADF EMG Task Flow Tester will be then available in the JDeveloper Library list.


Configuring ADF Web Project (ViewController) to use ADF Task Flow Tester:

Note: Before configuring ADF Task Flow Tester, make sure you are running the ADF application on an Integrated Weblogic Domain.

Open project properties
Right Click web project and select project properties or double click project name to open project properties.


Select Libraries and Classpath from Left Menu. Click "Add Library" and Select ADF EMG Task Flow Tester



After you clicked OK to add the library, the following dialog appears, indicating a run configuration named "Task Flow Tester" has been added to your project, which is also set as default run configuration.



You can now run the tester, by clicking on the run icon in the toolbar and choosing the "Task Flow Tester" run configuration. Likewise, you can run the tester in debug mode by clicking on the debug icon

Using ADF Task Flow Tester:

After launching the task flow tester, the following page will open
             

Clicking on the icon (see below diagram) user will have option to load artifacts from the project and also from the ADF Jar files.
                    
         
You can now select the task flow you want to test, enter task flow input parameter values, set run options as you like and run the test.
           
           




         




No comments:

Post a Comment