Class ViewGenerationWithDifferentConfigLevelTest


  • public class ViewGenerationWithDifferentConfigLevelTest
    extends GridConfigurationTest
    Test cases to check if the correct configurations are set, with the different grid configurations in tab, field and in system level.
    Author:
    NaroaIriarte
    • Constructor Detail

      • ViewGenerationWithDifferentConfigLevelTest

        public ViewGenerationWithDifferentConfigLevelTest()
    • Method Detail

      • shouldExecuteOnlyIfThereIsNoGridConfig

        public void shouldExecuteOnlyIfThereIsNoGridConfig()
        Execute these test cases only if there is no custom grid config as it could make unstable results
      • gridConfigurationSystemLevel

        public void gridConfigurationSystemLevel()
                                          throws Exception
        Having only grid configuration in System level. In the configuration, the "by default allow filtering" checkbox is checked, so, the expression "canFilter: true" must be found.
        Throws:
        Exception
      • gridConfigurationTabLevel

        public void gridConfigurationTabLevel()
                                       throws Exception
        Having only grid configuration at tab level. The "allow filtering" property in the grid configuration at tab level, in the Business Partner tab has been set to "No". So this test checks that the "canFilter: false" expression is present.
        Throws:
        Exception
      • gridConfigurationTabAndSystemLevel

        public void gridConfigurationTabAndSystemLevel()
                                                throws Exception
        Having grid configuration at System and tab level. The "allow filtering" property in the grid configuration at tab level, in the Business Partner tab has been set to "No". So this test checks that the "canFilter: false" expression is present. Also, the "allow sorting" property has been set to default, so, the taken value is going to be the one set in the grid configuration at system level, which is true. The test checks that the "canSort: true" expression is present.
        Throws:
        Exception
      • gridConfigurationFieldLevel

        public void gridConfigurationFieldLevel()
                                         throws Exception
        Having only grid configuration at field level. The Business Partner category field of business Partner has the property allow sorting set to "Yes", so the view must have "canSort: true" expression.
        Throws:
        Exception
      • gridConfigurationFieldAndSystemLevel

        public void gridConfigurationFieldAndSystemLevel()
                                                  throws Exception
        Having grid configuration at field and System level. In the grid configuration at system level, the "by default allow sorting" checkbox is checked. The tests ensures that the expression "canSort: true" exists. The business partner category of the business partner tab has the allow filtering property set to "No". The test ensures that the "canFilter: false" expression is present.
        Throws:
        Exception
      • gridConfigurationFieldAndTabLevel

        public void gridConfigurationFieldAndTabLevel()
                                               throws Exception
        Having grid configuration at field and tab level. The field Business Partner category of Business Parter has the property "allow sorting" set to "Yes". The test checks if the "canSort: true" exists. In the tab configuration the allow filtering property is set to no, so the "canFilter: false" must exist.
        Throws:
        Exception