Executions limit for a build

LATEST Official version.
Questions and discussions - NO ISSUES
FOR ISSUES => http://mantis.testlink.org

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
tristanisrael
TestLink user
Posts: 8
Joined: Wed Sep 09, 2015 6:36 pm

Executions limit for a build

Post by tristanisrael »

Dear all,

I have an automated executions of my test plans every hour. Now I have only one build named "automated" but, each run adds an execution. There is an XML file attached to each execution.
My question is: how to limit the total number of executions (for example I would like to keep only the last 60 executions or for 1 month...) ?

Thank you
Tristan
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: Executions limit for a build

Post by fman »

there is no standard way, no api, ecc., You need to do custom development
tristanisrael
TestLink user
Posts: 8
Joined: Wed Sep 09, 2015 6:36 pm

Re: Executions limit for a build

Post by tristanisrael »

Ok thank you.

Please could you tell me if I'm right with the following scenario:
1 - delete records in the table executions
2 - delete records in the table attachements
3 - delete folders in the repository/executions

Is there anything else ?

Regards
Tristan
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: Executions limit for a build

Post by fman »

Best thing to do may be is create (contribute) API to delete all related things.
Think doing the steps you have described can be enough, anyway it will be better if you
look for the issue and/or post that provide the DB SCHEMA and use it for additional check.
Example: you have forgot Customs Fields values related to executions

Please provide your work to community via a github repository

regards
tristanisrael
TestLink user
Posts: 8
Joined: Wed Sep 09, 2015 6:36 pm

Re: Executions limit for a build

Post by tristanisrael »

Ok thank you.
I'll look into it and submit it on github.

Regards
Post Reply