Main Content

sltest.testmanager.refreshTestRevisions

Refresh revision numbers for test cases and test suites in test file to track changes in dashboard

Since R2022b

    Description

    example

    sltest.testmanager.refreshTestRevisions(filename) refreshes the revision numbers for test cases and test suites in the sltest.testmanager.TestFile specified by filename. The dashboard is unable to isolate stale results to specific test cases or test suites if individual test cases, test suites, or test iterations were saved in R2021b or earlier. When you call sltest.testmanager.refreshTestRevisions on a test file, the function saves revision numbers for the test cases and test suites in the test file. If the test file is already open and dirty, the function updates the revision numbers, but does not save the test file.

    Examples

    collapse all

    Suppose you have a test file, test_file.mldatx, that contains test cases and test suites that do not have revision numbers. Use sltest.testmanager.refreshTestRevisions to save revision numbers for the test cases and test suites.

    Call sltest.testmanager.refreshTestRevisions on the test file test_file.mldatx.

    sltest.testmanager.refreshTestRevisions("test_file.mldatx");

    Now the dashboard can isolate stale results to specific test cases or test suites inside the test file test_file.mldatx.

    Input Arguments

    collapse all

    Filename of a test file, specified as a string.

    Example: "test_file.mldatx"

    Data Types: string

    Version History

    Introduced in R2022b