Book a Demo

Author Topic: Changing structured specifcation step icon keyword  (Read 3082 times)

Michael Albers

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Changing structured specifcation step icon keyword
« on: May 03, 2015, 09:29:05 pm »
Is it possible to change and add keywords so that the icon displayed on each step reflects that keyword.

In other words, let's say I want to use a more specific term for a user and I use that term, EA changes the icon accordingly? For example, when I enter 'The driver turns the key to start the engine' I would like to have an actor icon displayed even when normally that step would get a system icon.

Thanks.
Michael


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Changing structured specifcation step icon key
« Reply #1 on: May 03, 2015, 09:48:38 pm »
You can do that with a shape script
Code: [Select]
shape main {
      if (HasProperty("keywords", "test")) {
            println("ok");
      }
      DrawNativeShape();
}
This one will print the text "ok" top left if the contents if the Keywords properties matches the string "test". It is (AFAIK) not possible (except via add-in) to test a substring of keywords. The match is case insensitive.

q.
« Last Edit: May 03, 2015, 09:49:29 pm by qwerty »