Пример #1
0
    def addTestSettingValuesNewSectionTest(self):
        newValueMap = {}
        newValueMap.put("BROWSER1", "CHROME1")
        newValueMap.put("DBString2", "Dbstring2222")

        Config.addTestSettingValues(newValueMap, "NewSection", False)
        self.assertEquals(
            Config.getSection("NewSection").get("BROWSER1"), "CHROME1")
        self.assertEquals(
            Config.getSection("NewSection").get("DBString2"), "Dbstring2222")
Пример #2
0
 def getSectionWithConfigSecEnumTest(self):
     testSection = Config.getSection(ConfigSection.SeleniumMaqs)
     self.assertEquals(testSection.get("TestKey"), "testValueTwo")
     self.assertEquals(testSection.get("Browser"), "Internet Explorer")