-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestng-parallel.xml
More file actions
42 lines (38 loc) · 2.03 KB
/
Copy pathtestng-parallel.xml
File metadata and controls
42 lines (38 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE suite SYSTEM "https://testng.org/testng-1.0.dtd">
<!--
Module 19 introduces a deliberately conservative parallel suite.
TestNG parallelism is configured at suite level because the suite file is
the execution contract passed to Maven Surefire through:
mvn test -DsuiteXmlFile=testng-parallel.xml
parallel="classes" means TestNG may run different <class> entries at the
same time. It does not split methods inside the same class across threads.
That is safer for this learning framework because many classes still use
class-level setup/teardown and learner-readable fixture structure.
thread-count="3" is intentionally small. Parallel execution should be
expanded with evidence, not by turning every test loose at once.
-->
<suite name="Rest Assured Learning Parallel Smoke Suite" verbose="1" parallel="classes" thread-count="3">
<listeners>
<!--
The Extent listener was made ThreadLocal-aware in Module 18.
Without ThreadLocal, multiple parallel classes could write steps
into the wrong ExtentTest instance.
-->
<listener class-name="com.learning.api.tests.listeners.ExtentReportListener"/>
</listeners>
<test name="parallel-safe local and stubbed checks">
<classes>
<!--
These classes are intentionally chosen because they are either
local-only, configuration-only, mapping-only, or WireMock-backed.
The first parallel checkpoint avoids live state-changing CRUD
flows against Restful Booker.
-->
<class name="com.learning.api.tests.framework.FrameworkConfigTest"/>
<class name="com.learning.api.tests.framework.JacksonMappingTest"/>
<class name="com.learning.api.tests.framework.BookingDataReaderTest"/>
<class name="com.learning.api.tests.framework.SensitiveDataMaskerTest"/>
<class name="com.learning.api.tests.wiremock.WireMockBookingErrorTest"/>
</classes>
</test>
</suite>