User Tools

Site Tools


technical_notes:public:fitnesse-open-error-logs-in-notepad

Parent

Fitnesse - Open Output Captured in notpad++ with Powershell

You should download this script in your fitnesse directory.

errorlog.ps1
$repo_path= pwd | %{$_.Path + "\FitNesseRoot\"}
$url_fitnesse="http:\/\/localhost:8080\/"
 
$env:Path="C:\Program Files (x86)\Notepad++;"+$env:Path
 
$text = $args[0]
$path = $text -replace "$url_fitnesse", "" | 
    %{ $_ -replace "\?.*$",""} |
    %{ $_ -replace "\.","\"} |
    %{ $repo_path +'ErrorLogs\' + $_ + '\content.txt'}
 
echo $path
notepad++ $path
./errorlog.ps1 http://localhost:8080/Tests.MyTest?test
./errorlog.ps1 http://localhost:8080/Tests?suite
technical_notes/public/fitnesse-open-error-logs-in-notepad.txt · Last modified: 2014/07/21 09:15 by Fabien Arcellier