Last active
February 12, 2019 10:40
-
-
Save noakesey/531b403e61231675bcb3c6a340d95aed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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