Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - PiotrS

Pages: [1] 2
1
General Board / Re: How to refresh properties of elements loaded i
« on: March 07, 2014, 10:54:19 pm »
More information after small exercises  :) ...
I wrote and execute small addin, only with RefreshModelView(0) and in this situation not work :( this described earlier differences in scenariosteps of UC-element are still in EAP. In UI still is ok, but in dbase not (added step with empty name, uses, references but with set "level").
When I edited this scenario its ended with information:
"Warning: You have unsaved 'Scenarios' information!
Do you wish to save these changes?
Yes/No/Cancel"
and when i chose "Yes" everything is OK. Differences are removed and the scenario is corect.

2
General Board / Re: How to refresh properties of elements loaded i
« on: March 07, 2014, 09:38:08 pm »
Quote
I still do not see the real problem. There are a number of properties you don't see in the UI. That's correct. And there is no way to make EA show them except you do something like Geerts EA Explorer.

If you are going to change these hidden values I don't see any problem. Just update the object and call update. Eventually you need to refresh the project browser using RefreshModelView (which of course only affects the visible properties).

q.


Thank you for answer, I will try with addins, I know this way but I look for way from UI.
I'm sorry that it's not clearly :( I have problem with properties witch are visible in UI. I wrote steps in scenario for element type UseCase, names elements etc. These properties are shown in many places in UI and have different values in described situations.

3
General Board / Re: How to refresh properties of elements loaded i
« on: March 07, 2014, 07:18:11 pm »
I write addins to verify the correctness of EAP.
In this EAP I have a few examples of errors/differences of displayed data and object structures.
I find the steps in the scenariosteps of element (UseCase) with no name, no uses and results parameters (and another too) and they are not displayed (even empty) in window with Property of this element, the numbering of the steps are skipped.
Another difference... element name is different in window (EA) and in the object structure.
It looks like buffering changes (but hard, saved in this state). Save this changes is not required before closing EAP in EA. Opened EAP in next time is same, this undisplayed differences they are still.
Sometimes EA detected changes of state (and asc to save) but it's only if you edited this item in this moment.
It is hard to show and to correct this mistakes in EA (to use program, not addins) when they are invisible. They are visible only in object structure but it is not easy way to ea users who only created eap (define use case).
Can I (this user) use same "magic" option in EA to correct (save) this unsaved changes (refresh whole EAP)?

4
General Board / How to refresh properties of elements loaded in EA
« on: March 07, 2014, 09:47:10 am »
Some of data in the window with properties of element are not the same like date in the structure of this object. How in the Project Browser can I refresh the data of element or the best of the whole project? "Reload Current Package" or re-open (close and open) EAP nothing change in this case, I try it early. Please help.

5
It's already fixed... information from another user...
My version is too old: EA Edition: Corporate Build: 9.2.921
(...)
You're using an EA version that's more than two years (and two major versions) out of date. The behavior in question is a confirmed bug, which was fixed in version 10.0.1005.
(...)

6
I sent the bug report. If I get an answer, I'll pass it on the forum.
Thank You for help.

7
Thank you for your interest in my problem, I'll try to do as you wrote

8
I want update field "Results" (UI) for the one of scenario steps defined to element, but its not working. Method "Update()" (API) updated filed "results" instead "result". Only the value from "result" (database, t_objectscenarios.XMLContent=>result) is shown in UI. It is true? It is another way to updated field "Results" (UI) using API?
Code: [Select]
                       foreach (EA.IDualScenario es in element.Scenarios)
                        {
                            foreach (EA.IDualScenarioStep ess in es.Steps)
                            {
                                if (ess.Name.Trim().Length == 0 &&
                                    ess.Uses.Trim().Length == 0 &&
                                    ess.Results.Trim().Length == 0
                                    )
                                {
                                    ess.Name = "TEST_Name";
                                    ess.Uses = "TEST_Uses";
                                    ess.Results = "TEST_Results";

                                    ess.Update();
                                }
                            }
                            es.Update();
                        }
                        element.Update();

9
Automation Interface, Add-Ins and Tools / Re: Delete step in scenario
« on: June 03, 2014, 08:03:12 pm »
I sent the bug report. If I get an answer, I'll pass it on the forum.
Thank You for help.

10
Automation Interface, Add-Ins and Tools / Re: Delete step in scenario
« on: June 03, 2014, 06:14:05 pm »
Yes, I saw. Thank you, I'm doing as you wrote.
I was thinking that You will make other tests (?).

11
Automation Interface, Add-Ins and Tools / Re: Delete step in scenario
« on: June 03, 2014, 05:04:02 pm »
Thank you for your interest in my problem, I'm waiting for the results of your tests 8-)

12
Automation Interface, Add-Ins and Tools / Re: Delete step in scenario
« on: June 03, 2014, 12:17:59 am »
Thank you for the quick response, I tried to changed my code as You suggest, but I still need help. These empty rows are not deleted, there are only moved on the end of the steps collection. I tried delate, update and refresh in different sections but still was uncorrect. Could You help me?

Code: [Select]
                 short esCnt = element.Scenarios.Count;
                    for (short esIdx = (short)(esCnt - 1); esIdx >= 0; --esIdx)
                    {
                        EA.IDualScenario es = element.Scenarios.GetAt(esIdx);
                        short essCnt = es.Steps.Count;
                        for (short essIdx = (short)(essCnt - 1); essIdx >= 0; --essIdx)
                        {
                            EA.IDualScenarioStep ess = es.Steps.GetAt(essIdx);
                            if (ess.Name.Trim().Length == 0 &&
                                ess.Uses.Trim().Length == 0 &&
                                ess.Results.Trim().Length == 0)
                            {
                                //1. section
                                es.Steps.DeleteAt(essIdx, true);

                                //ess.Update();
                                //es.Update();
                                //element.Update();
                                //es.Steps.Refresh();
                                //element.Scenarios.Refresh();
                            }
                        }
                        //2. section
                        //es.Update();
                        //es.Steps.Refresh();
                        //es.Update();
                    }
                    //3. section
                    //element.Update();
                    element.Scenarios.Refresh();

13
I have these same problem with deleting steps from scenario...

I want delete empty steps of scenario from element, but its not working, this "deleted" steps exists in this scenario.
Where is mistake in my code?  :-/

foreach (EA.IDualScenario es in element.Scenarios)
{ foreach (EA.IDualScenarioStep ess in es.Steps)
  {
    if (ess.Name.Trim().Length == 0 &&
      ess.Uses.Trim().Length == 0 &&
      ess.Results.Trim().Length == 0)
    {
      es.Steps.Delete((short)ess.Pos);
      es.Steps.Refresh();
      es.Update();
      element.Scenarios.Refresh();
    }
  }
}

Do you have any ideas? :)

14
Quote
Hi,
I have problem with reading value of extension points set for the Use Case.  :-[
It is two ways to read this value. First in API from Element.ExtensionPoints ("Optional extension points for a Use Case as a comma-separated list.") and secound from object from t_object.PDATA1 ("For UseCase: #EXP#=<ep>; semi-colon separated list of Extension Points <ep>").  8-)
Sometimes these values are different. The value from Element.ExtensionPoints is uncorrect, shorter then from PDATA1.  :o
Are there any limits (values of EP, length all/separate EP) to the definition of extension points in these source place?

I made some tests.. 256 chars is the limit for length of t_object.PDATA1.

It is only 256 chars for all sentence, separators ("#EXP#=" and ";") and values of extension points for a Use Case defined in UI. But this limit is not controled in UI (!), can we defined more then this limit. And from this I have problem.

The value in Element.ExtensionPoints included the values from t_object.PDATA1 without separators ("#EXP#=" and ";"), stored as comma-separated list values.
If in UI, user defined uncorect values (limit or more then limit), it is difficulte to find problem.
In t_object.PDATA1 is stored only 256 charecters sentence (value from UI is cut without any information).
In Element.ExtensionPoints not included the last EXP from t_object.PDATA1.

If t_object.PDATA1 has 256 characters in whole sentence without ";" on the end, the last EXP from t_object.PDATA1 "disappears", is not added to Element.ExtensionPoints but still stored in t_object.PDATA1 and shown in UI.
And from this, sometimes are differentes, and I think it is bug in UI of EA.

15
Hi,
I have problem with reading value of extension points set for the Use Case.  :-[
It is two ways to read this value. First in API from Element.ExtensionPoints ("Optional extension points for a Use Case as a comma-separated list.") and secound from object from t_object.PDATA1 ("For UseCase: #EXP#=<ep>; semi-colon separated list of Extension Points <ep>").  8-)
Sometimes these values are different. The value from Element.ExtensionPoints is uncorrect, shorter then from PDATA1.  :o
Are there any limits (values of EP, length all/separate EP) to the definition of extension points in these source place?

Pages: [1] 2