Hi Team,
We are using a browser button inside a test step, but it displays “.” instead of the full file path.
Regards
Jestin CI
Note: Original question from Chin Wee
Hi Team,
We are using a browser button inside a test step, but it displays “.” instead of the full file path.
Regards
Jestin CI
Note: Original question from Chin Wee
Hi @justin_c_i,
Normally “.” denotes the current directory. Did you select the installation folder in the dialog?
Otherwise, do you have any logic in the property setter for Folder Path?
Hi @rolf_madsen ,
We are using the following code, we need to get the Full path instead of …, is there anyway or do we need to write our own custom control?
[DirectoryPath]
[Display(“Folder Path”, “Path to board folder.”,Order:50)]
public string FolderPath { get; set; }
Regards
Jestin CI
Hi @justin_c_i,
You can probably do it that way, but since you are anyway marking it compile time, I think the easiest way is to do it in the setter like this:
string _folderPath = Directory.GetCurrentDirectory();
[Directory]
public string FolderPath
{
get => _folderPath ;
set {
_folderPath = Path.GetFullPath(value);
}
}
Thanks @rolf_madsen , It is working fine.