cancel
Showing results for 
Search instead for 
Did you mean: 

How to Remove Readyapi logs before running testsuite or project from readyapi folder

Highlighted
Regular Contributor

How to Remove Readyapi logs before running testsuite or project from readyapi folder

How to Remove Readyapi logs before running testsuite or project from readyapi/logs folder 

 

Testsuite is running via commandline

7 REPLIES 7
Highlighted
Community Hero

Re: How to Remove Readyapi logs before running testsuite or project from readyapi folder

@678,

Before running test execution command, simply you can run a command - "del *.log"

Does it help?


Regards,
Rao.
Highlighted
Regular Contributor

Re: How to Remove Readyapi logs before running testsuite or project from readyapi folder

how can i do as Setupscript for Testsuite 

Highlighted
Community Hero

Re: How to Remove Readyapi logs before running testsuite or project from readyapi folder

Delete may lead to issue as testrunner is accessing the log files.


Regards,
Rao.
Highlighted
Regular Contributor

Re: How to Remove Readyapi logs before running testsuite or project from readyapi folder

how can we fix this... as before running testsuite i would like to delete all existing logs on .readyapi/logs folder 

 

that's causing Jenkins build failing because of huge logs 

Highlighted
Community Hero

Re: How to Remove Readyapi logs before running testsuite or project from readyapi folder

Once testrunner is started execution, it will access the log file and you want to delete it; not logical.

Already suggested a way how to delete them with simple os command in first reply. Not sure what is stopping you not to use it!
It is very much possible to run an additional command in jenkins as part of build step, or before build step.


Regards,
Rao.
Highlighted
Regular Contributor

Re: How to Remove Readyapi logs before running testsuite or project from readyapi folder

cannot add as build step, is there any other way that we can accomplish ? 

as jenkins managed by others

Highlighted
Community Hero

Re: How to Remove Readyapi logs before running testsuite or project from readyapi folder

Jenkins is for you or your team only right irrespective who manages and what purpose does it solve if they dont configure the way it is needed or required?


Regards,
Rao.
New Here?
Join us and watch the welcome video:
Announcements
TechCorner Leaderboard
Compete with community members in the TechCorner Challenge and get into the Leaderboard!

Rank Participant Points Earned
1 msiadak 12
2 nmrao 8
3 HimanshuTayal 3
Top Kudoed Authors