Below is my code:
If I click on getCorpSettings in the runner page I get.
If I click on settings=look_and_feel I get.
Why am I not getting the correct values when running the group like I get when running the items within the group?
describe( "getCorpSettings", function() {
beforeEach( function() {
mockDao.$reset();
application.objectCache['SettingsDAO'] = mockDAO;
subjectCFC = new "#application.servicePath#.SettingsService"();
} );
describe( "settings=all", function() {
it( "Should call the getCorpSettings function for all settings", function() {
result1 = subjectCFC.getCorpSettings(corpId = 53, settings = 'all');
debug(result1);
expect( listLen(result1.qryGetCorpSettings.ColumnList) eq settingCount +1).toBeTrue("Returned #listLen(result1.qryGetCorpSettings.ColumnList)# columns instead of #settingCount +1#");
} );
} );
describe( "settings=corp_wide_settings", function() {
it( "Should call the getCorpSettings function for each corp_wide setting", function() {
result2 = subjectCFC.getCorpSettings(corpId = 53, settings = 'corp_wide_settings');
debug(result2);
expect( listLen(result2.qryGetCorpSettings.ColumnList) eq (settingCount+1)).toBeTrue("Returned #listLen(result2.qryGetCorpSettings.ColumnList)# columns instead of #settingCount+1#!");
} );
} );
describe( "settings=look_and_feel", function() {
it( "Should call the getCorpSettings function for each look_and_feel setting", function() {
result = subjectCFC.getCorpSettings(corpId = 53, settings = 'look_and_feel');
debug(result);
expect( listLen(result.qryGetCorpSettings.ColumnList) eq 101).toBeTrue("Returned #listLen(result.qryGetCorpSettings.ColumnList)# columns instead of 101!");
} );
} );
describe( "settings=e-commerce", function() {
it( "Should call the getCorpSettings function for each e-commerce setting", function() {
result = subjectCFC.getCorpSettings(corpId = 53, settings = 'e-commerce');
expect( listLen(result.qryGetCorpSettings.ColumnList) eq 228).toBeTrue("Returned #listLen(result.qryGetCorpSettings.ColumnList)# columns instead of 228!");
} );
} );
describe( "settings=afb_corp_settings", function() {
it( "Should call the getCorpSettings function for each afb_corp setting", function() {
result = subjectCFC.getCorpSettings(corpId = 53, settings = 'afb_corp_settings');
expect( listLen(result.qryGetCorpSettings.ColumnList) eq 239).toBeTrue("Returned #listLen(result.qryGetCorpSettings.ColumnList)# columns instead of 239!");
} );
} );
describe( "settings=afb_corp_email_settings", function() {
it( "Should call the getCorpSettings function for each afb_corp_email setting", function() {
result = subjectCFC.getCorpSettings(corpId = 53, settings = 'afb_corp_email_settings');
expect( listLen(result.qryGetCorpSettings.ColumnList) eq 168).toBeTrue("Returned #listLen(result.qryGetCorpSettings.ColumnList)# columns instead of 168!");
} );
} );
} );```