Creating Test Session with defined parameters - MultiValue issue
Hello,
I'm developing software, that is creating test session based on test specification, and i already handled getting data from PTC, but i can't create Test Session using CmdRunner.
try
{
PTC.Command Cmd = new PTC.Command(PTC.Command.IM, "createissue");
PTC.MultiValue mv1 = new PTC.MultiValue("=");
PTC.MultiValue mv2 = new PTC.MultiValue("=");
PTC.MultiValue mv3 = new PTC.MultiValue("=");
mv1.add("Summary");
mv1.add("AutoSessionTest1");
mv2.add("Project");
mv2.add("/MySampleProject/Electronics");
mv3.add("Test Objective");
mv2.add("473680");
Cmd.addOption(new PTC.Option("type", "Test Session"));
Cmd.addOption(new PTC.Option("field", mv1));
Cmd.addOption(new PTC.Option("field", mv2));
Cmd.addOption(new PTC.Option("field", mv3));
PTCResponse.Response R = InputEngine.Run(Cmd);
MessageBox.Show("Test Session Created");
}
catch (Exception exc)
{
MessageBox.Show(exc.Message);
}
Do you have an Idea why it won't work?
Best regards,
Chris

