Jaydeep Patel edited a comment on Bug JENKINS-19530

Hi Amit, I am after similar functionality as well.

i actually have fixed it in the code more according to my requirments
/// <returns></returns>
public override TestSuiteRunResults Run()
{
if (!Connected)
return null;
TestSuiteRunResults activeRunDesc = new TestSuiteRunResults();
//find all the testSets under if given some folders in our list
try

{ FindAllTestSetsUnderFolders(); }

catch (Exception ex)

{ ConsoleWriter.WriteErrLine(string.Format(Resources.AlmRunnerErrorBadQcInstallation, ex.Message, ex.StackTrace)); return null; }

//run all the TestSets
foreach (string testset in TestSets)
{
string testset1 = testset.TrimEnd("
".ToCharArray());

int pos = testset1.LastIndexOf('
');
string tsDir = "";
string tsName = testset1;
if (pos != -1)
{
tsDir = testset1.Substring(0, pos).Trim("
".ToCharArray());
tsName = testset1.Substring(pos, testset1.Length - pos).Trim("
".ToCharArray());
if (tsDir.Contains('%'))

{ var sTemp = tsName.Replace("%", ""); string sTempvalue = System.Environment.GetEnvironmentVariable(sTemp.ToString(), EnvironmentVariableTarget.Machine); tsDir = sTempvalue; }

if (tsName.Contains('%'))

{ var sTemp = tsName.Replace("%", ""); string sTempvalue = System.Environment.GetEnvironmentVariable(sTemp.ToString(), EnvironmentVariableTarget.Machine); tsName = sTempvalue; }

}

TestSuiteRunResults desc = RunTestSet(tsDir, tsName, Timeout, RunMode, RunHost);
if (desc != null)
activeRunDesc.AppendResults(desc);
}

return activeRunDesc;
}

this bit divides them into two directory path being parameterized and the testset name being parameterized.

i couldnt build the plugin because my work proxy does not allow maven to be executed. hope this helps , please let me know when the next Release is out

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to