Wednesday, July 4, 2018

Setup Method

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

No comments:

Post a Comment

Configure the Firewall on the Enterprise Portal Server

After you install Enterprise Portal, enable Web Server (HTTP) in Windows Firewall. If you do not enable the web server in Windows Firewall...