Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/htmltestlogger/TxtToJSON.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,12 @@ private void GenerateCaseCategoryFile()
/// <returns>Returns case name(key) and categories(value)</returns>
private Dictionary<string, List<string>> GetTestCaseCategories()
{
Dictionary<string, List<string>> testCases = new Dictionary<string, List<string>>();
Dictionary<string, List<string>> testCases = new Dictionary<string, List<string>>();
DirectoryInfo info = new DirectoryInfo(Directory.GetCurrentDirectory());
bool existBatch = false;
if (info.FullName.EndsWith("Batch"))
existBatch = true;

string fullPath = existBatch ? info.Parent.FullName : info.FullName;
foreach (string dllPath in dllFiles)
{
Expand Down Expand Up @@ -340,9 +340,9 @@ private List<string> GetCaptureFilesPath()
existBatch = true;
string fullPath = existBatch ? info.Parent.FullName : info.FullName;
string cfgFolder = Path.Combine(fullPath, "bin");
string[] ptfconfigFiles = Directory.GetFiles(cfgFolder, "*.ptfconfig", SearchOption.TopDirectoryOnly);
try
{
string[] ptfconfigFiles = Directory.GetFiles(cfgFolder, "*.ptfconfig", SearchOption.TopDirectoryOnly);
foreach (string configFile in ptfconfigFiles)
{
XmlDocument configXml = new XmlDocument();
Expand Down