Filter for sorting by "date created" or "date edited"

Hello there!

Thanks for an amazing platform - we’ve recently started using Testiny in our team, and so far it’s awesome! :slight_smile:

With that in mind, this might be a feature request - and it might also be an example of a new user not finding the functionality that already exists on the platform. :sweat_smile:

Is it possible to have a dynamic condition that filters test cases that have been created and/or edited in a set time frame? For instance, I want to make a test plan that includes:

  1. All test cases of Critical importance
  2. All test cases on the iOS platform
  3. All test cases that have been created or edited (as in updated) the past moth.

I find it easy to make conditions for 1 and 2, but I struggle with 3. A workaround we’ve used in our team is to make sure that new cases use a specific “Type”, and we include that type as a condition for said test plan. In the long run, this will add overhead to our project, and it would be nice to have a way to dynamically have new or newly edited/updated test cases included in new test runs.

Hi and welcome to the Testiny forum!

Thank you for your feedback and the kind words!

Unfortunately, there is currently no way to do that filter in the Testiny app. The Testiny API does support time based queries, but we simply haven’t added a UI for that feature, yet.
I added your request to our wanted features list for consideration and I’m pretty sure this will be implemented at some point - the more people ask (or vote) for it, the sooner :slight_smile:

Best Regards,

1 Like

Just as a follow-up, here is a JS snippet of how to retrieve the test cases created in the last 30 days in project with ID 1:

await testiny.testcase.find(
	filter: {
		project_id: 1,
		created_at: {
			op: "gt",
			value: new Date(new Date().setDate(new Date().getDate() - 30)).toISOString()

Just open up the developer console in your browser when having the Testiny app open and paste this snippet, you should then get a list test cases formatted as JSON. (The same can be done via the API using simple web requests.)

It’s not a UI, but at list you can get a list to check against.

Best Regards,

Thank you very much Alex, both for adding it to the list of considered features, and also for the JS snippet-workaround. :slight_smile:

1 Like