Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

concordion:example #10

Open
cobour opened this issue Apr 18, 2017 · 8 comments
Open

concordion:example #10

cobour opened this issue Apr 18, 2017 · 8 comments

Comments

@cobour
Copy link

cobour commented Apr 18, 2017

Hi,
since Concordion introduced the "example" command on tables in 2.1.0 I tried to use it with this excel-extension.
In my Excel-File I have a column named "Testcase-Nr" which i want to use as the text for the JUnit-View.
My Excel-comment on this column looks like this:

concordion:set="#testcaseNr"
concordion:example
(table)concordion:execute="#...[snip]...

The tests run fine, but the rows are not reported as single tests. The excel file is reported as a test as a whole as before.
Did I make a mistake? Or is this not supported yet?

Regards
Frank

@robmoffat
Copy link
Member

robmoffat commented Apr 18, 2017 via email

@cobour
Copy link
Author

cobour commented Apr 18, 2017

Thanks for the quick reply.
I want to achieve that each row of the excel table is shown as a single testcase in the JUnit view (of eclipse). I thought this could be achieved by using "concordion: example" in the table header according to the docs here: http://concordion.org/instrumenting/java/markdown/#run-each-row-as-an-example

@robmoffat
Copy link
Member

robmoffat commented Apr 18, 2017 via email

@cobour
Copy link
Author

cobour commented Apr 18, 2017

Hi,
sorry, I didn't write that.
Yes, I tried, it did not help.
Regards
Frank

@robmoffat
Copy link
Member

I think Steven Goris found a solution to this problem: #11

@GoGoris
Copy link

GoGoris commented Jul 16, 2017

(div)concordion:example="test1" works for running the table as an example. I didn't test putting it on a row, however according to the spec it should be on the th-tag instead of the row. I would try putting (th) in front of the concordion:example tag on the column header.

If it does not work, I would check the html of the report using F12 in chrome.

@cobour
Copy link
Author

cobour commented Jul 17, 2017

I tried putting (th)(div)concordion:example (even without the (div)), but no difference.
Thanks anyway for the hint.

@vgheo
Copy link
Contributor

vgheo commented Oct 4, 2019

Not sure if this is still a problem, though I have a suggestion as to how to determine the correct instrumentation for placing attributes on parent tags.

You can look at the html generated from the excel ( the input html, not the report one) by adding this to the fixture

@ConcordionOptions(copySourceHtmlToDir="target")

Starting with 2.1.3, this html also includes traceability attributes to the original location in excel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants