web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :

Setup Method

Hossein.K Profile Picture Hossein.K 6,650
The next step is to override the setUp method of the SysTestClass. This will tell
the Unit Test framework what parameters need to be setup before the test is run.
In this case, you need to instantiate the SysDictTable object using the table name.



1
2
3
4
5
6
public void setUp()
{
sysDictTable = new
SysDictTable(TableNum(CustTable));
super();
}

The setUp method can also be used to insert or update any data necessary for the
test.


TearDown Method

At the completion of a test run, it may be necessary to "undo" any data created in
the
setUp method. This can be done in the tearDown method, which is called at
the end of the test. The
tearDown method can be overridden on any class
extending
SysTestCase.

Best Regards,
Hossein Karimi

Comments

*This post is locked for comments