test_t1_59_ManageDistrictsSchoolsAndCourses.py 文件源码

python
阅读 16 收藏 0 点赞 0 评论 0

项目:test-automation 作者: openstax 项目源码 文件源码
def test_admin_set_the_number_of_sections_100136(self):
        """Set the number of sections.

        Steps:

        Expected Result:
        """
        self.ps.test_updates['name'] = 't1.59.022' \
            + inspect.currentframe().f_code.co_name[4:]
        self.ps.test_updates['tags'] = ['t1', 't1.59', 't1.59.022', '100136']
        self.ps.test_updates['passed'] = False

        # Test steps and verification assertions
        self.admin.wait.until(
            expect.visibility_of_element_located(
                (By.PARTIAL_LINK_TEXT, 'Course Organization')
            )
        ).click()
        self.admin.wait.until(
            expect.visibility_of_element_located(
                (By.PARTIAL_LINK_TEXT, 'Courses')
            )
        ).click()

        # Create the course
        self.admin.find(By.XPATH, "//a[text()='Add Course']").click()
        self.admin.find(
            By.ID, "course_num_sections"
        ).send_keys((Keys.DELETE) + str(1))

        self.ps.test_updates['passed'] = True

    # Case C100137 - 023 - Admin | Set the course start date and time
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号