Has anyone built something via DXL that could be an example noted below and would be willing to share ? |
Re: DOORS Metrics Collector across multiple modules? One problem is: What do you consider to be a requirement? Are you counting shall statements, or where some attribute=="Requirement", etc. Your methodology will likely be different than mine. Anyhow, I thought you should know that this is possible, and there are elegant solutions around. Good luck. |
Re: DOORS Metrics Collector across multiple modules?
I have accomplished something pretty similar, using pre-defined views which we like to have in the modules anyways, and a script that loads a view, counts the objects that matched, and goes on to the next view, spitting the results into the DXL Interaction window. My users run that all the time to see where they are with orphans, spinsters, and tramps. Quick and easy. I use copyview.dxl push the views to new modules as they come online.
pragma runLim, 0
Module m = current
Object o = null
int reqtCount = 0
load view "Metric 1-Traced Requirements"
for o in m do {
reqtCount ++
}
infoBox "There are " reqtCount " matching requirements in Metric 1-Traced Requirements"
reqtCount=0
load view "Metric 2-Parents w/ no Children"
for o in m do {
reqtCount ++
}
infoBox "There are " reqtCount " matching requirements in Metric 2-Parents w/ no Children"
reqtCount=0
load view "Metric 3-Orphans w/ Children"
for o in m do {
reqtCount ++
}
infoBox "There are " reqtCount " matching requirements in Metric 3-Orphans w/ Children"
reqtCount=0
load view "Metric 4-Requirements w/ no links"
for o in m do {
reqtCount ++
}
infoBox "There are " reqtCount " matching requirements in Metric 4-Requirements w/ no links"
reqtCount=0
load view "Metric 5-Total Requirements"
for o in m do {
reqtCount ++
}
infoBox "There are " reqtCount " matching requirements in Metric 5-Total Requirements"
|
Re: DOORS Metrics Collector across multiple modules? cliff.sadler - Thu Apr 26 15:49:18 EDT 2012
I have accomplished something pretty similar, using pre-defined views which we like to have in the modules anyways, and a script that loads a view, counts the objects that matched, and goes on to the next view, spitting the results into the DXL Interaction window. My users run that all the time to see where they are with orphans, spinsters, and tramps. Quick and easy. I use copyview.dxl push the views to new modules as they come online.
pragma runLim, 0
Module m = current
Object o = null
int reqtCount = 0
load view "Metric 1-Traced Requirements"
for o in m do {
reqtCount ++
}
infoBox "There are " reqtCount " matching requirements in Metric 1-Traced Requirements"
reqtCount=0
load view "Metric 2-Parents w/ no Children"
for o in m do {
reqtCount ++
}
infoBox "There are " reqtCount " matching requirements in Metric 2-Parents w/ no Children"
reqtCount=0
load view "Metric 3-Orphans w/ Children"
for o in m do {
reqtCount ++
}
infoBox "There are " reqtCount " matching requirements in Metric 3-Orphans w/ Children"
reqtCount=0
load view "Metric 4-Requirements w/ no links"
for o in m do {
reqtCount ++
}
infoBox "There are " reqtCount " matching requirements in Metric 4-Requirements w/ no links"
reqtCount=0
load view "Metric 5-Total Requirements"
for o in m do {
reqtCount ++
}
infoBox "There are " reqtCount " matching requirements in Metric 5-Total Requirements"
|
Re: DOORS Metrics Collector across multiple modules? Paul Miller Melbourne, Australia |
Re: DOORS Metrics Collector across multiple modules? cliff.sadler - Thu Apr 26 15:49:18 EDT 2012
I have accomplished something pretty similar, using pre-defined views which we like to have in the modules anyways, and a script that loads a view, counts the objects that matched, and goes on to the next view, spitting the results into the DXL Interaction window. My users run that all the time to see where they are with orphans, spinsters, and tramps. Quick and easy. I use copyview.dxl push the views to new modules as they come online.
pragma runLim, 0
Module m = current
Object o = null
int reqtCount = 0
load view "Metric 1-Traced Requirements"
for o in m do {
reqtCount ++
}
infoBox "There are " reqtCount " matching requirements in Metric 1-Traced Requirements"
reqtCount=0
load view "Metric 2-Parents w/ no Children"
for o in m do {
reqtCount ++
}
infoBox "There are " reqtCount " matching requirements in Metric 2-Parents w/ no Children"
reqtCount=0
load view "Metric 3-Orphans w/ Children"
for o in m do {
reqtCount ++
}
infoBox "There are " reqtCount " matching requirements in Metric 3-Orphans w/ Children"
reqtCount=0
load view "Metric 4-Requirements w/ no links"
for o in m do {
reqtCount ++
}
infoBox "There are " reqtCount " matching requirements in Metric 4-Requirements w/ no links"
reqtCount=0
load view "Metric 5-Total Requirements"
for o in m do {
reqtCount ++
}
infoBox "There are " reqtCount " matching requirements in Metric 5-Total Requirements"
Ken. |
Re: DOORS Metrics Collector across multiple modules? mcnairk - Fri Apr 27 08:23:49 EDT 2012 Could you please share the DXL script to collect the Requirement metrics in DOORS |