Book a Demo

Author Topic: ScenarioStep.Results property cannot be set  (Read 3234 times)

jaro-lew

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
ScenarioStep.Results property cannot be set
« on: July 01, 2011, 12:20:53 am »
I'm trying to create scenario steps, but what makes me helpless is that
I cannot set ScenarioStep.Results property.
The update method seems not to transfer it to  the tool.

On the other hand I can set ScenarioStep.Uses property.

Code: [Select]
   EA.ScenarioStep step2 = steps.AddNew("Step2", "1");  // 1 - means Actor
    step2.Results = "R";       //doesn't work
    step2.Uses = "N is used";  //works
                    
    step2.State = "5";         //works

    MessageBox.Show("R? " + step2.Results);  //still correct
    if (!step2.Update())
        MessageBox.Show(mRepository.GetLastError());
    steps.Refresh();

    for (short i1 = 0; i1 < steps.Count; i1++)
    {
        EA.ScenarioStep step3 = (EA.ScenarioStep) steps.GetAt(i1);
        if (step3.Name == "Step2")
        {
            MessageBox.Show("R? " + step3.Results);  // not correct
        }
    }


Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: ScenarioStep.Results property cannot be set
« Reply #1 on: July 01, 2011, 11:08:50 am »
What build of EA are you running?  (See: Help | About EA)

There was an issue with the ScenarioStep.Results attribute that was fixed in EA 8.0.863.

jaro-lew

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: ScenarioStep.Results property cannot be set
« Reply #2 on: July 01, 2011, 08:00:06 pm »

I work with:  8.0.864. Sorry, I should have started with that info.

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: ScenarioStep.Results property cannot be set
« Reply #3 on: July 05, 2011, 01:42:16 pm »
If possible, perhaps also try running the latest version of EA 9 to see if this makes any difference.  If the problem continues, please submit a bug report for further investigation using the "Report a bug" link at the foot of this page.