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

Word document is corrupt if a Feature has no description #261

Closed
xDazedx opened this issue Jan 14, 2016 · 14 comments
Closed

Word document is corrupt if a Feature has no description #261

xDazedx opened this issue Jan 14, 2016 · 14 comments

Comments

@xDazedx
Copy link

xDazedx commented Jan 14, 2016

I am using the msbuild nuget package and when the features.docx is opened, I am receiving an error. I am using Word 2013.

"We're sorry. We can't open features.docx because we found a problem with it's content."
clicking details displays:
"A document must contain exactly one root element. Location: Part: /word/document.xml, Line 1, Column: 0"

Is this a bug or is it something on my end? The html format looks fine!

1-14-2016 1-31-40 pm

@dirkrombauts
Copy link
Member

I am sorry, I cannot reproduce this problem with my test data.

Which runner are you using? Are you including test results? Would it be possible to send me the project with the feature files so that I can try for myself?

@xDazedx
Copy link
Author

xDazedx commented Jan 15, 2016

Thanks Dirk. I am using SpecRun with Jenkins and not doing test results as of yet. I added a command line argument in the msbuild section of the Jenkins Project like the below. As mentioned, the HTML is building fine but when I change the output to word, I get the error opening the doc. Unfortunately I can't send you the project.

I am going to add pickles to a few more projects and that should tell me if it is project specific or something else. Thanks for the help!

/p:Pickles_Generate=True /p:Pickles_FeatureDirectory=C:\ProjName\UI\Selenium_Automation\Tests /p:Pickles_DocumentationFormat=html /p:Pickles_OutputDirectory=C:\ProjName\UI\Selenium_Automation\TestResults\Pickles

@dirkrombauts
Copy link
Member

Yes, please try it on a few more projects ... maybe you could try a sample project that you are allowed to send me and see if the problem occurs.

While we are on the topic of the Word output format: I'm curious why you use it. I personally have no use for it, so I'm interested to know what needs you address with it.

@xDazedx
Copy link
Author

xDazedx commented Jan 15, 2016

I work for a company that due to what we do, we are extremely locked down. When I run our automation through Jenkins, I attach the specrun report to an email and send it out after the run. My goal was to attach the word document along with the test results. The html version is available but that server is locked down so they have to have permissions to access it. The word attachment was just an easy way to send it out.

@dirkrombauts
Copy link
Member

I have experience with locked down environments :-) Another alternative would be to zip the directory of the static html version. The static html version is meant for easy portability, so it can be zipped, ftp'ed, copied to a usb thumb drive, ...

@tboksebeld
Copy link

Hi,
Did you find the cause of this issue ?

I tried pickles for the first time today. Html was fine but I met the same error with Word. Unfortunately you do not have any error message with commande line but I tried the same operation with picklesui to generate Word documentation and I got a NullReferenceException in the output window.

There is maybe a dependency or something we forgot.
Did you find something about it ?

untitled

@xDazedx
Copy link
Author

xDazedx commented Feb 17, 2016

I ended up just using a zipped version of the html since I could not resolve this. It happened on multiple projects.

@dirkrombauts
Copy link
Member

I was unable to reproduce this problem on my system so far :-(

@tboksebeld are you able to share the project data that lead to this problem? I'll happily sign an NDA if needed.

@tboksebeld
Copy link

I solved my problem.
I don't know which step of the environment setup i failed or forgot.
I uninstalled all and re-install dependencies and pickles step by step and it now works fine.
(It was maybe an issue due to my features file cause I reworked it too.)

Anyway, find a NullReferenceException while executing picklesui product was surprizing ;-)

@dirkrombauts
Copy link
Member

@tboksebeld do you know what you changed in the feature files?

@xDazedx did you try the UI version of Pickles? Did you get an error message there?

@dirkrombauts dirkrombauts changed the title Word Doc Corrupt? Word document is corrupt if a Feature has no description Feb 19, 2016
@dirkrombauts
Copy link
Member

Good news. Thanks to the screenshot provided by @tboksebeld I was able to reproduce the problem. It will soon be fixed, and I will create a new release next week.

@dirkrombauts
Copy link
Member

Released in version 2.4.0.

@xDazedx
Copy link
Author

xDazedx commented Mar 3, 2016

Thank you for fixing this issue!

@dirkrombauts
Copy link
Member

My pleasure :-)

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

3 participants