- Selenium - Grid
- Selenium - TestNG
- Selenium - Test Design Techniques
- Selenium - User Interactions
- Selenium - Locators
- Selenium - WebDriver
- Selenium - Selenese Commands
- Selenium - Remote Control
- Selenium - Environment Setup
- Selenium - IDE
- Selenium - Overview
- Selenium - Home
Selenium Useful Resources
- Selenium - Discussion
- Selenium - Automation Practice
- Selenium - Useful Resources
- Selenium - Quick Guide
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Selenium - TestNG
测试国家是一个强大的试验框架,是经过改进的Junnit版本,在检测全国组织成立之前,该版本已长时间使用。 国家政府支持下一代。
测试框架提供了以下特点:
Annotations help us organize the tests easily.
Flexible test configuration.
Test cases can be grouped more easily.
Parallepzation of tests can be achieved using TestNG.
Support for data-driven testing.
Inbuilt reporting.
Instalpng TestNG for Ecppse
![Selenium IDE 93](/selenium/images/selenium_ide_93.jpg)
Step 7——“接受许可协议”和点击Finish。 Step 8——检测全国开始安装,进展如下: Step 9——由于无法确定软件的有效性,安全警报波及。 Cpck Ok。 Annotations were formally added to the Java language in JDK 5 and TestNG made the choice to use annotations to annotate test classes. Following are some of the benefits of using annotations. More about TestNG can be found
测试小组通过研究说明确定它感兴趣的方法。 因此,方法名称不局限于任何模式或格式。 我们可以通过附加参数说明。
Annotations in TestNG
说明被严格分类,因此汇编者将指明任何错误。
不再需要为Junnit提供试验课程(例如测试项目)。
Sr.No. | Annotation & Description |
---|---|
1 | 附加说明的方法只有在该套设备的所有测试进行之前才能使用。 |
2 | 附加说明的方法只有在该套设备的所有测试进行之后才能使用。 |
3 | 附加说明的方法只有在采用现行类别中的第一个测试方法之前才能使用。 |
4 | 附加说明的方法只有在本类所有测试方法运行之后才能使用。 |
5 | 附加说明的方法将先在“带”内各班级的任何测试方法之前使用;试卷和试卷;标签在操作。 |
6 | 附加说明的方法将在“带”内各班级的所有测试方法之后使用;试卷和格塔已经运行。 |
7 | 这一组合方法将先处理的群体名单。 这种方法保证在采用属于上述任何群体的第一种测试方法之前不久即可使用。 |
8 | @Aftergroups 这一组合方法的小组名单将紧随其后。 这种方法保证在采用属于上述任何群体的最后测试方法之后不久即可使用。 |
9 | 附加说明的方法将在每次测试方法之前使用。 |
10 | 附加说明的方法将采用每次测试方法。 |
11 | 标出一种为测试方法提供数据的方法。 附加说明的方法必须退回标的[][],条件是每个目标[]可以被分配到试验方法的参数清单。 想要从这一数据提供人那里获得数据的@ 试验方法需要使用一个数据提供人的名称,该名称等同于该说明的名称。 |
12 | 标出一种作为工厂的一种方法,该工厂将回收试验国家将用作试验班的物体。 这种方法必须回归目标。] |
13 | 对听众进行测试。 |
14 | 说明如何将参数运用到一种@ 试验方法。 |
15 | a. 作为测试的一部分,标识一个类别或一种方法。 |
TestNG-Ecppse Setup
Step 1——发射Ecppse,并创建新的 Java项目,如下所示。
![Selenium IDE 53](/selenium/images/selenium_ide_53.jpg)
![Selenium IDE 103](/selenium/images/selenium_ide_103.jpg)
Step 7——在建立该项目时,项目的结构如下所示。 Step 11——选择包装名称、类别名称和点击Finish。 现在,让我们开始使用测试国家进行描述。 让我们举出我们用来了解网络司机的同样例子。 我们将使用demo应用程序,
First Test in TestNG