Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

play list support, or method to re-run single tests #253

Closed
gwr opened this issue Jan 6, 2022 · 7 comments
Closed

play list support, or method to re-run single tests #253

gwr opened this issue Jan 6, 2022 · 7 comments

Comments

@gwr
Copy link

gwr commented Jan 6, 2022

The old ProtocolTestManager U/I had a "play list" feature, where you could save a list of tests
(after running the tool that selects which tests to run).
One could then edit that play list to run a subset, or even just one test.

I'd like a way to do that with the current Protocol Test Manager CLI,
but I don't see any such features. Is there one? If not, this is a feature request.

Thanks

@Dingshouqing
Copy link
Member

Dingshouqing commented Jan 10, 2022

Hi Gordon,

Thanks for contacting us.

Current Protocol Test Manager CLI does not support the “play list” feature, we’ll add this requirement to our backlog.

The old ProtocolTestManager GUI is deprecated as for not supporting cross-platform, you could try our new PTMService which supports running on more platforms like Windows, Linux, and macOS.
The new PTMService is similar to the old GUI tool and supports “play list”, you could select cases you want to run and also support check history run result, you could have a try.
For more details please visit our wiki page: PTMService
ptmservice

Best Regards,
Windows Protocol Test Suites Development Team

@gwr
Copy link
Author

gwr commented Jan 10, 2022

Thanks very much. I have not looked at the PTMService yet.
Does that offer a way to re-run a single test?

@Dingshouqing
Copy link
Member

Dingshouqing commented Jan 11, 2022

Hi Gordon,

Yes, PTMService can re-run a single test!

  • Option 1
    Click the “Run” button of the previously created configuration
    1
    Select test you want to run/re-run then click “Run selected cases”
    2
    After clicking the “Run selected cases” button it will auto navigate to the “View History” page, you could click “go back” and then will go back to the “Run Selected Test Case” page and you could select a case to run/re-run again
    3

  • Option 2
    Click the “View History” link on top and then find the previous run record and click “View Result”
    4
    Select test you want to re-run and then click “Rerun Selected Cases”
    5

Best Regards,
Windows Protocol Test Suites Development Team

@gwr
Copy link
Author

gwr commented Jan 17, 2022

It would be handy to be able to specify a playlist (or single test name) for the PTM CLI.
However, the PTM service is a useful work-around for that deficiency of the CLI.
Thanks.

@Dingshouqing
Copy link
Member

Hi Gordon,

PTMCli supports users to specify a filter expression to run selected tests, this could help you to be able to run specific tests by name or category instead of providing a playlist.
For example:
Run tests which name contains “CreateFileTestCasesS20”

PTMCli.exe -p fileserver.ptm -t "C:\FileServer-TestSuite-ServerEP" --filter "Name~CreateFileTestCaseS20"

Run Tests which category equals to “CreateFile”

PTMCli.exe -p fileserver.ptm -t "C:\FileServer-TestSuite-ServerEP" --filter "TestCategory=CreateFile"

You could download our latest released PTMCli to have a try.
We’ll update our PTMCli wiki page accordingly.

For more details about how to use --filter please refer to this document: Run selected unit tests - .NET | Microsoft Docs

Best Regards,
Windows Protocol Test Suites Development Team

@gwr
Copy link
Author

gwr commented Jan 18, 2022

Thanks. I did not find information about the --filter language, only finding examples using "TestCategory=..."
Thanks for pointing out the "Name=..." feature.

@lumengyanhelen
Copy link

Hi Gordon,

Since this thread has been inactive for some time, we will close it for now. Please feel free to contact us if there is any further question.

Best Regards,
Windows Protocol Test Suites Development Team

⭐⭐Join us at SNIA EMEA SDC SMB3 IO Lab 2022 (4/5-4/7):
https://interopevents.com/en-us/snia2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants