mardi 28 juillet 2020

Maven profiles and config file

I program tests on APIs, I have a config file which contains the url of an API (it must contain several APIs) and therefore each profile will be executed on a specified url.

Now I have a default profile on my project and I created a second one:

<profiles>
<profile>
  <id>profileTest</id>
</profile>

I need that each profile be executed on one of the URL below ( URLs are in the same config file )

env.base_url="first url"

env.base_url="second url"

Aucun commentaire:

Enregistrer un commentaire