Skip to content

Instantly share code, notes, and snippets.

@noakesey
Last active February 12, 2019 10:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noakesey/531b403e61231675bcb3c6a340d95aed to your computer and use it in GitHub Desktop.
Save noakesey/531b403e61231675bcb3c6a340d95aed to your computer and use it in GitHub Desktop.
public class wwReportExampleTest extends SysTestCase
{
[SysTestMethodAttribute]
public void TestReport()
{
//Arrange
wwSysUserRoleInfoReportPage report =
wwSysUserRoleInfoReportPage::construct();
//Pass arguments here if the report has a contract
//and vary according to the test
//SysUserLicenseCountRDPContract contract = new
SysUserLicenseCountRDPContract();
//e.g.
//contract.parmReportStateDate(today());
//report.parmRdpContract(contract);
//Act
report.run();
//Assert
//Let's make sure the report lists out all 33
//(or however many) expected users
this.assertEquals(33, report.roleCount());
//Let's make sure the HR assistant appears on the
//report as expected
this.assertEquals(true,
report.isRoleIncluded('Human resource assistant'));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment