Skip to Content
0
Former Member
May 25, 2005 at 07:26 PM

"Portal Unit Testing Perspective" questions

22 Views

I am confused and need some help to figure out a couple of things in this perspective. I will reward points and will later write a nice blog about testing....

I found the following documents:

http://help.sap.com/saphelp_nw04/helpdata/en/6d/bffc3f48ecc742e10000000a1550b0/frameset.htm

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/ep/introduction to the portal perspective within netweaver developerstudio.pdf

This documents are explaining a little bit, but confuse more that they help.

MY QUESTIONS:

- Who uses this feature ?

- when i create a test class using the test wizard i can create a class but I also get an error in the assert statement.

public void testTestHalloWorld(IPortalComponentRequest request, IPortalComponentTestResponse response)

{

response.assert(false, "Not yet tested", "Id");

}

The error is : Syntax error on token "assert", "new" expected

Do i have to import additional JAR files ? If so where can I find these?

- When I want to test a component I need to extend the class with AbstractTestComponent instead of AbstractPortalComponent.

Both documents say that I have to implement also the ITestable interface, which makes no sense for me because this interface is already included in the AbstractTestComponent.

- Who has an example, which makes sense ?

Any comment is appreciated !

Kai