|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/testng-made-easy-for-beginners-detailed-course/
课程评论:没有评论
TestNG 入门详细课程 本课程深入讲解 TestNG 的所有概念和主题,并提供实际演示。TestNG 将从零开始,一步一步进行讲解。TestNG 是构建 Selenium 测试自动化框架的基石,因此深入详细地学习它是必需的。本课程将终结您寻找 TestNG 全面课程的搜索。 课程涵盖的 TestNG 主题包括: * TestNG 简介 * 在项目中安装和使用 TestNG * 在 Eclipse IDE 中自动生成带有测试方法的 TestNG 类 * 将 TestNG 测试框架用于 Selenium 自动化 * 将 TestNG 测试框架与 Rest Assured 框架结合用于自动化 API 测试 * `priority` 属性 * 使用 testng.xml 文件进行批量执行 * TestNG 中的断言 * 硬断言与软断言 * TestNG 注解 * TestNG 参数 * TestNG 可选参数 * 使用 `enabled` 属性在 testng.xml 文件中启用/禁用测试用例 * 使用 `enabled` 属性和 `@Ignore` 注解启用/禁用测试方法 * 使用 `@Ignore` 注解在类级别启用/禁用测试方法 * 使用 `@Ignore` 注解在包级别启用/禁用测试方法 * 使用多个 testng.xml 文件在 TestNG 中对测试进行分组 * 使用 `groups` 属性在 TestNG 中对测试进行分组 * TestNG 中的元分组 * TestNG 中的部分分组 * TestNG 中的子类别分组以及使用正则表达式 * 使用 `dependsOnMethods` 属性实现 TestNG 中的测试依赖 * `alwaysRun` 属性 * `ignoreMissingDependencies` 属性 * `dependsOnGroups` 属性 * 使用 `dependencies` 标签和 `depends-on` 属性实现组依赖于组 * 在包级别执行测试 * TestNG 参数化 - 数据驱动测试,`DataProvider` 注解和 `dataProvider` 属性 * 使用 `name` 属性命名 DataProvider 方法 * 使用数组参数参数化测试方法 * 使用 `dataProviderClass` 属性将 DataProvider 方法分离到单独的类中 * 多个 DataProvider 方法 * 多个类中的多个 DataProvider 方法 * 为什么需要使用对象数组来返回数据 * DataProvider 的不同返回类型 * Jagged Arrays 和 DataProviders * 使用 `indices` 属性从 DataProvider 方法部分传递数据 * 使用 POI API 从 Excel 文件读取数据 * 使用 POI API 将数据从 Excel 文件读取到 DataProvider 方法中 * 通过在 DataProvider 中指定 `parallel` 属性来并行执行测试 * 使用 `data-provider-thread-count` 控制 DataProvider 调用的并行测试线程数 * `timeOut` 属性 * `expectedExceptions` 属性 * 使用 `parallel` 和 `thread-count` 属性在 TestNG 中并行执行测试 * TestNG 中的 `parallel=tests` 并行执行 * `parallel=tests` 只能在 suite 标签级别指定,不能在 test 标签级别指定 * TestNG 中的 `parallel=classes` 并行执行 * TestNG 中的 `parallel=methods` 并行执行 * 多个 test 标签,但只有少数 test 标签启用了并行执行 * TestNG 中的 `parallel=none` 并行执行 * TestNG 中的 `parallel=false` 并行执行 * `parallel=tests` 但 `thread-count=1` * 是否可以为并行执行提供负数的 `thread-count` 值 * 更多的线程和少量的测试 `parallel=classes` 或 `parallel=methods` 在 suite 标签级别指定 * 当 `parallel` 属性仅被提及时的默认 `thread-count` * `invocationCount` 属性 * `invocationTimeOut` 属性 * `threadPoolSize` 属性 * 监听器是什么 * TestNG 库中可用的不同监听器列表 * 使用 `ITestListener` 监听器 * 在类级别实现监听器 `@Listeners` 注解 * 在 testng.xml 文件的 Suite 级别实现监听器 * `onStart()` 和 `onFinish()` ITestListener 方法 * 监听器与注解的区别 * 使用 `TestListnerAdapter` 类代替 `ITestListener` 接口 * 使用监听器为失败的测试截屏 * 避免截屏覆盖 * 检索测试标签名称以及测试名称 * 使用依赖注入为失败的测试截屏 * 默认 TestNG 报告及其实时使用 * 从 Eclipse IDE 卸载 TestNG * TestNG `verbose` 属性 - testng.xml 文件 * 使用 IRetryAnalyzer 和 IAnnotationTransformer 进行 TestNG 重试 * TestNG `verbose` 属性 - testng.xml 文件
This course covers TestNG in-depth by covering all its concepts and topics, along with practical demonstration.TestNG is explained from scratch and in a step by step manner.TestNG is the backbone for building Selenium Test Automation Frameworks, hence it is required to learn in depth and detail.This course ends your search for finding a course, which covers in and out about TestNG.The following are the different TestNG topics which are covered in this course: What is TestNGInstalling TestNG and using in ProjectsAuto-generating TestNG Classes with a Test Method in Eclipse IDEUsing TestNG Testing Framework for Selenium AutomationUsing TestNG Testing Framework with Rest Assured Framework for Automating API TestsUsing priority attributeUsing testng xml file for batch executionAssertions in TestNGHard Assertions versus Soft Assertions TestNG AnnotationsParameters in TestNGOptional Parameters in TestNGEnable Disable Test Cases using enabled attribute in testng xml fileEnable Disable Test Methods using enabled attribute and @Ignore annotationEnable Disable Test Methods at Classs level using @Ignore annotationEnable Disable Test Methods at Package level using @Ignore annotationGrouping Tests in TestNG using multiple testng xml filesGrouping Tests in TestNG using groups attributeMeta Groups in TestNGPartial Groups in TestNGSub Category Groups in TestNG and using regular expressionsTest Dependency in TestNG using dependsOnMethods attributealwaysRun attributeignoreMissingDependencies attributedependsOnGroups attributeGroups Depending on Groups using dependencies tag and depends-on attributeExecuting Tests at Package LevelTestNG Parameterization - Data Driven Testing, DataProvider annotation and dataProvider attributeNaming DataProvider method using name attributeParameterizing Test method with Array parameterSeparating DataProvider method into a separate Class using dataProviderClass attributeMultiple DataProvider methodsMultiple DataProvider methods in multiple classesWhy we have to use Object array to return dataDifferent return types of DataProviderJagged Arrays and DataProvidersPartially passing the data from Data Provider method using indices attributeReading Data from Excel files using POI APIReading Data from Excel files into DataProvider method using POI API Executing tests in parallel by specifying parallel attribute in DataProvider methodControlling parallel tests thread count invoked by DataProvider using data-provider-thread-counttimeOut attributeexpectedExceptions attributeParallel Execution of Tests in TestNG using parallel and thread-count attributesparallel=tests in TestNG Parallel executionparallel=tests can only be mentioned at suite tag level and not at test tag levelparallel=classes in TestNG Parallel Executionparallel=methods in TestNG Parallel Execution Multiple test tags, but only few test tags enabled for parallel executionparallel=none in TestNG Parallel Executionparallel=false in TestNG Parallel Executionparallel=tests but thread-count=1Can we provide thread-count as negative value for Parallel ExecutionMore threads and less number of tests parallel=classes or parallel=methods specified at suite tag levelDefault thread-count when parallel attribute is only mentionedinvocationCount attributeinvocationTimeOut attributthreadPoolSize attributeWhat are ListenersList of different Listeners available in TestNG LibraryUsing ITestListner Listener Implementing Listeners at Class Level @Listeners annotation Implementing Listeners at Suite Level in testng xml filonStart() and onFinish() ITestListener methodsDifference between listeners and annotationsUsing TestListnerAdapter class in place of ITestListener interface Taking screenshots for Failed Tests using ListenersAvoiding Screenshot OverridingRetrieving Test Tag name along with Test NameTaking screenshots for Failed Tests using Dependency InjectionDefault TestNG Reports and their real time usageUninstalling TestNG from Eclipse IDTestNG verbose attribute - testng xml file TestNG Retry using IRetryAnalyzer and IAnnotationTransformerTestNG verbose attribute - testng xml file