Forum Discussion

sridevihiranya's avatar
sridevihiranya
Occasional Contributor
8 years ago

Endpoints gets saved in composite project xml files ,even after removing them in ReadyAPI

Hi,

 

I have set my endpoints in environment configuration, I don't want these endpoints to get saved in my project files, so I tried removing it and then save the project as composite project, but still I see endpoints in xml files in project location.

I want to share my project to VCS(Stash), so that other members of my team can work on my code. So I don't want them to see the endpoints that I used in the xml.

How do I remove the endpoints so that endpoints are not shown in xml files of composite project.

  • nmrao's avatar
    nmrao
    Champion Level 3
    You may write groovy script to remove those endpoints which are undesired from the project. And put that code in Project level "Save Script". This script works whenever project is saved.

    Of course, you may execute the code when certain condition is true so that you won't lose the changes on each save.