close_project
Forgets the open project. The session and the results of the last run stay.
On this page
Signature
cat.close_project() -> None
Parameters
None.
What it does
Detaches the open project from the session so that the project functions (get_tests, invoke_tests, …) refuse until another open_project. It does not end the session and keeps the last run’s summary — get_test_results_summary() still works afterwards. It is never required: open_project replaces the open project by itself, and ending the process releases everything.
Returns
None.
Raises
The license key and plan check (first call of the process) raises the CatPortalError family listed on the Introduction page. With no open project: RuntimeError: There is no open project. Open a CAT project file first.
Examples
cat.open_project("D:/Testing/DwhTests.cat.yaml")
summary = cat.invoke_tests()
cat.close_project()
Related
- Introduction — session model, logging, .NET objects, exceptions, plans and the license key.
open_project— the counterpart.