cancel
Showing results for 
Search instead for 
Did you mean: 

NetWeaver Developer Infrastructure (NWDI) u0096 Developer Studio

Former Member
0 Kudos

What does every one use to unit test/assembly test java code when developing with NetWeaver Developer Infrastructure (NWDI) – Developer Studio? Is there alot of opportunity to standardize and share configurations and templates among developers?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Do u mean g integrating 3rd party Unit testing tools like JUnit etc with NWDI...

regards

rajesh kr

Former Member
0 Kudos

Yes, Is there a need for 3rd party tools like Junit? Versus the Netweaver bundled Jlin, ATS and eCATT... Are these netweaver bundled tools comprehensive for testing?

Former Member
0 Kudos

Hi

Its depends purely on what your requirements are ?

Though it's always better to use sap specific Tools since u get good customer support.

Yeah but if you want use 3rd party testing tools , u can go ahead ,just keeping in mind that if you already were using these tools , it would be not be helpful for you to switch to new testing tools. Better approach would be to to integrate those tools with NWDI.

If you are developing some thng new with respect to SAP then it will be better to go with sap specific test tools

Hope this helps , please mark points for helpful answers

regards

rajeshkr

Answers (1)

Answers (1)

Former Member
0 Kudos

HI

GOOD

UNIT TEST IN NETWEAVER =>

Definition

The Enterprise Portal Unit Test Perspective is an extension of the PRT test framework that enables you to test portal applications in their real runtime environment and provides XML-based results. This allows you to test portal applications directly from the development environment.

Use

Using Enterprise Portal Unit Test Perspective you can:

· Perform regression tests.

You can compare the test result with a reference test result. Note that a reference test result is a regular test result with no specific format.

· The preferences of the perspective enable you to specify and save the configuration of the servers containing the tests and the name of the folder for the result, test suite and reference.

· Compare the test result with the reference.

The output of the PRT test framework is XML-based.

· Extract XML output on your computer as a test result.

The portal can contain many testable portal applications.

· Include or exclude tests and save the selection as a test suite.

-

-


Definition

The Unit Test Studio provides additional helper classes to help with coding more complex Test Cases. These helper classes are delivered in the unittest.facilities.jar part of the unittest.facilities.par portal application. The main class is com.sapportals.portal.prt.unittest.AbstractTestComponent. This class contains methods to facilitate the creation of new tests.

A new test must extend AbstractTestComponent class instead of extending AbstractPortalComponent and implementing ITestable. The AbstractTestComponent includes two inner classes:

· TestResult

The class has attributes corresponding to a result: boolean and log.

· TestResultSet

The class TestResultSet is a list of TestResult.

AbstractTestComponent allows another component to be called thanks to the invoke() method. The last parameter, a string, is the URI of the component.

The displayTestResultSet() method allows the list of a result to be displayed in the response. Each result is displayed as by the verify() method of the IPortalComponentTestResponse.

GO THROUGH THE FOLLOWING LINKS TO GET SOME MORE KNOWLEDGE

http://help.sap.com/saphelp_nw04s/helpdata/en/6d/bffc3f48ecc742e10000000a1550b0/content.htm

=========================

ASSEMBLY TEST=>

GO THROUGH THE FOLLOWING LINKS

http://help.sap.com/saphelp_nw04/helpdata/en/01/9c4940d1ba6913e10000000a1550b0/content.htm

http://help.sap.com/saphelp_nw04s/helpdata/en/01/9c4940d1ba6913e10000000a1550b0/content.htm

THANKS

MRUTYUN