vendredi 1 mai 2020

How can I make the path in config file relative in MSTest

In My App.config file - I have added the absolute path, but now I want to make the path as relative

    <add key="Design.Image1" value="D:\GIT-TA\src\Automation\Framework\Resources\Images\Black.jpg" />
    <add key="Design.Image2" value="D:\GIT-TA\src\Automation\Framework\Resources\Images\Pattern_2.jpg" />

Here path from "D:\GIT-TA\src\Automation" can be anything so rather using absolute value - I want to use relative path so it can take image from "any path\Resources\Images\Pattern_2.jpg"

Can this be done?

Aucun commentaire:

Enregistrer un commentaire