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