Author Topic: Test Automation  (Read 2607 times)

DerDybel

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Test Automation
« on: January 03, 2024, 07:08:17 pm »
Happy new year,

My question is about how to automate verification (i.e. testing) of requirements in Enterprise Architect 16. What I have gathered from the EA user guide is that you can use scenarios to define test cases that can then be run manually by someone who subsequently changes the test "verdict" to pass or fail, depending on the outcome. However, my model is going to be very large and I would like to avoid that hundreds or more tests have to be run manually every time something changes. The model describes a physical system using activity diagrams ("interpreted simulation" thanks to JavaScript) and parametric diagrams (simulatable via OpenModelica). My goal would be to find a way to define test cases that allow running these simulations and have the verdict change automatically based on the outcome of the simulation. Could anyone please point me in the right direction?

Thanks in advance

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13286
  • Karma: +556/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Test Automation
« Reply #1 on: January 03, 2024, 07:23:56 pm »
Should be possible if you write a script, addin, or external program to run the simulations, and change the test outcomes.

Here's where to start when doing automation in EA: https://sparxsystems.com/enterprise_architect_user_guide/16.1/add-ins___scripting/automation_interface.html

Geert

DerDybel

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Test Automation
« Reply #2 on: January 04, 2024, 01:31:12 am »
Thanks a lot, I will try that out!