Apps To Fusion

.......Our Journey from Apps To Fusion

 
  • Increase font size
  • Default font size
  • Decrease font size
We have launched several Development, Functional and DBA Trainings. Visiti http://focusthread.com/training

How to test ADF Business Components

Now that you have basic ADFbc ready for your service layer, it is very important to be able to test them. JDeveloper provides a very easy way to test your business layer.

There is AM Tester that you can invoke by just right click on the AM and that will let you browse, cretae, update and delete data for all VOs included in the AM.

Follow these steps to test the HumanResourceAM cretaed earlier.

  1. Right click on HumanResourceAM in JDeveloper and select Run.
  2. Click on Connect. It will use the DB connection that you used when generate ADFbc.
  3. This will show Business Components browser for the AM.
  4. Double click on Locations1 and it will show data from Locations table in a form.
  5. Now click on Department2. This will show you all Departments with LOC = NEW YORK because that is your current location row. Go to Location tab and use Blue ">" icon to move to next row. Now come back to Department2 tab and see that rows shown for Dept table are changed to show Departments with LOC = DALLAS. This shows you how automatic master-child works.
  6. Similarly you can browse Deparment to Employee master child and other VOs.
  7. Now click green "+" icon in Locatin tab. This allows you to create a new row for Location table. Enter values for LOC = SFO and LName = San Francisco attributes.
  8. Now go to Department2 tab. Notice there are no rows show as this is new location. 
  9. Click "+" green icon to create new department. Notice that LOC attribute is automatically populated with SFO because this deparment is created via view link.
  10. Populate other fields and click on Green Arrow icon. This will commit all the changes to the DB.
  11. Query Employee1 and enter comm = 100 and tab. Click on Green Arrow icon. This will commit all the changes to the DB.
  12. Use Blue ">" icon to go to some other row. Click on Red "x" icon to delete current row. Click on Green Arrow icon. This will commit all the changes to the DB.
  13. Close the AM tester and Re-run and verify all the changes you have made.
 
 
 
 
 
 
 
 
 
 
 
Comments (9)add
Getting error when i am running my first ADF page
written by venkatarao P , December 23, 2008
Hi ,

I have created new ADF page in Jdeveloper 11g. I have done the steps which are mentioned in the OTN ADF tutorial. when i am running the page, i am getting blank page, In jdeveloper console its throwing the below exception. can u pls help me.


report abuse
vote down
vote up
Votes: +1
...
written by venkatarao P , December 23, 2008
Dec 23, 2008 11:34:02 AM GMT+05:30>
report abuse
vote down
vote up
Votes: +0
...
written by venkatarao P , December 23, 2008
Error
HTTP
BEA-101017
weblogic.servlet.internal.WebAppServletContext@beaed3 - appName: 'BrowseEditApp', name: 'BrowseEditApp-ViewController-context-root', context-path: '/BrowseEditApp-ViewController-context-root', spec-version: '2.5', request: weblogic.servlet.internal.ServletRequestImpl@d5c42f[
GET /BrowseEditApp-ViewController-context-root/faces/adf.task-flow?adf.tfId=orders-flow&adf.tfDoc=/WEB-INF/orders-flow.xml HTTP/1.1
Accept: */*
Accept-Language: en-us
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)
Connection: Keep-Alive
Cookie: JSESSIONID=S3gTJQ6T4dHG37fjc9Z5bGClTmRjxGtpJrL7rWpQyh6q FmZJZyld!1341130353

Root cause of ServletException.
java.lang.NullPointerException
at oracle.adfinternal.view.faces.context.RichPhaseListener.afterPhase(RichPhaseListener.java:336)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:354)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:203)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
Truncated. see log file for complete stacktrace

report abuse
vote down
vote up
Votes: +0
when i am running
written by venkatarao P , December 23, 2008
Hi,

i am getting this error when i am running the AM in ADF.
(oracle.jbo.JboException) JBO-29000: Unexpected exception caught: java.sql.SQLException, msg=ORA-01882: timezone region not found

Can u pls suggest.

Venkat
report abuse
vote down
vote up
Votes: +0
...
written by Tapash , December 29, 2008
Are you sure your database connection is active for the project ? 11G Jdev is a bit different from earlier releases in a way that in 11G you can have database connections defined per project and if you are running the project (or the AM in the project in this case) then the database connectivity should be defined for the project.
report abuse
vote down
vote up
Votes: -1
...
written by OracleTech , January 06, 2009
The connection is defined at Application Workspace level in 11g. The connection you got in zip file points to my local DB so you may not be able to run it as is.
You can change connection by Application Resources : Connections : Database : Right click on the DB Connection and select Properties.
Click "Test Connection" once you make changes to make sure it works.
report abuse
vote down
vote up
Votes: -1
Testing Custom Java programs in App Module
written by kart , February 04, 2009
Suppose we create "client intefaces" inside the app module then how do test these clinet interfaces ? Can you please provide an expample here ?
report abuse
vote down
vote up
Votes: -2
...
written by OracleTech , February 07, 2009
> Can you please provide an expample here ?
Sure, will post an article on that tomorrow.
report abuse
vote down
vote up
Votes: -1
test client method
written by OracleTech , February 07, 2009
> Sure, will post an article on that tomorrow.
Here you go - http://apps2fusion.com/at/68-f...fbc-tester
report abuse
vote down
vote up
Votes: +0
Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
smile
wink
laugh
grin
angry
sad
shocked
cool
tongue
kiss
cry
smaller | bigger

security image
Write the displayed characters


busy
 

Related Items

Search apps2fusion