Efficient Test Organization with CenterTest: Harnessing the Power of Test Suites

Testing is an integral part of any software development process, and with growing software, the quantity and complexity of tests also increase. In such scenarios, managing these tests can become a daunting task. Enter CenterTest - simplifies this complexity through test suites, allowing you to group and organize tests in any way that fits your testing strategy. Utilizing JSON files for configuration, test suites support regex matches for both packages and tests and even allows for nesting of test suites within other test suites, providing highly configurable and flexible test organization.

Unleashing the Power of Test Suites in CenterTest

Test suites in CenterTest enable you to group your tests based on different criteria, such as features, functionality, or any other logical grouping that fits your testing strategy. Here's how you can use test suites to their full potential:

A hand placing building blocks with images of business ideas

1. Organizing Tests and Packages

CenterTest allows you to arrange your tests and packages into a JSON file. Here's an example of how you can organize your tests in a package:

{
    "Name": "ClaimCenter",
    "Packages": [
        "com.ootb.tests.cc.*"
    ]
}

In this configuration, all tests within the com.ootb.tests.cc package (and its sub-packages due to the wildcard '*') will be included in the "ClaimCenter" suite.

2. Selecting Individual Tests

You can also include individual tests in your test suite for a more granular approach. Here's an example:

{
    "Name": "TimeTravel",
    "List": [
        "TimeTravelToFutureTest",
        "TimeTravelToPastTest"
    ]
}

In this case, only TimeTravelToFutureTest and TimeTravelToPastTest will be included in the "TimeTravel" suite.

3. Combining Test Suites

The flexibility of CenterTest allows you to combine multiple test suites. Here's an example of how you can combine "BillingCenter" and "ClaimCenter" into "AllCenters":

{
    "Name": "BillingCenter",
    "Packages": [
        "com.ootb.tests.bc.*"
    ]
},
{
    "Name": "ClaimCenter",
    "Packages": [
        "com.ootb.tests.cc.*"
    ]
},
{
    "Name": "AllCenters",
    "Suites": [
        "BillingCenter",
        "ClaimCenter"
    ]
}

4. Enhancing Suites with Additional Tests

You can also enhance an existing suite with additional tests. This example shows how to add TimeTravelTest to the "AllCenters" suite:

{
    "Name": "AllCenters",
    "Suites": [
        "PolicyCenter"
    ],
    "List": [
        "TimeTravelTest"
    ]
}

5. Running Test Suites from IntelliJ Using AnkrPt Plugin

A group of runners lined up at the start of a race

Once your test suites are configured, you can execute them directly from IntelliJ using the AnkrPt Plugin. A green arrow next to the suite enables you to create an appropriate run configuration with just a click. This feature makes running complex suites of tests as simple as running a single test.

Additionally, you can specify a particular test suite using properties, providing even more flexibility and control over your test execution process. This allows the test suites to be run, for example, from your CI/CD process.

Conclusion

With its flexible and powerful test suite capabilities, CenterTest transforms the daunting task of managing multiple tests into a seamless and efficient process. By allowing you to organize, group, and combine tests effectively, it provides a streamlined approach to your testing needs. The AnkrPt Plugin makes executing these organized tests easy from your IntelliJ IDE.

These features significantly improve the efficiency and effectiveness of your testing process, letting you focus on the software by simplifying the testing. This, in turn, enables you to deliver reliable software faster, providing immense value to your users and your business.

Explore CenterTest

CenterTest Generators

Automatically generate test framework assets directly from Guidewire source code. Your tests stay synchronized with your configuration.

Restart Points

Resume failed or suspended scenarios from clearly identified Restart Points to eliminate false failures and optimize test suite execution time.

Role & Session Management

Optimize execution through intelligent session management, and test realistic workflows where multiple users interact with the same transaction.

Time Travel

Automate date-sensitive workflows like renewals, delinquencies, and claims processing. Hassle-free testing of complete policy lifecycles.

Data-Driven Testing

One scenario, hundreds of test variations. Simplify maintenance and scale coverage through data – without duplicating test code.

Document Testing

Automatically validate document generation and verify document content for policy documents, invoices, or claims correspondence.

CenterTest Data Studio

Let analysts own the test data. Business and test analysts change CenterTest test data without development knowledge, on their own machine.

CenterTest Recorder

Record once. Everyone benefits. An analyst walks through the process once in PolicyCenter, BillingCenter or ClaimCenter, and the team gets a video, written steps, the clicks and the checks.

Frequently Asked Questions

Understanding CenterTest

Browse all questions

Ready to elevate your QA practice?

Guidewire test automation,

without the headaches.

that's easy to maintain.

in just two weeks.

future-proofed for cloud.

  • Guidewire test automation, that's easy to maintain.
  • Guidewire test automation, in just two weeks.
  • Guidewire test automation, future-proofed for cloud.
Get Started