Cannot open the resource Calculator.Spec.Calculator.html

32 views
Skip to first unread message

João

unread,
Aug 4, 2009, 1:47:11 PM8/4/09
to Concordion For .Net
Hi,

I am trying to use Concordion for .NET. It really looks good.

However, when I try to run the sample application I get:



Fatal Exception in Test Controller
System.InvalidOperationException: Cannot open the resource
Calculator.Spec.Calculator.html
em Concordion.Internal.EmbeddedResourceSource.CreateReader(Resource
resource) em d:\BuildAgent-01\work\a9abc5d6ee8c09c0\Concordion\Internal
\EmbeddedResourceSource.cs:line 54
em Concordion.Internal.XmlSpecificationReader.ReadSpecification
(Resource resource) em d:\BuildAgent-01\work
\a9abc5d6ee8c09c0\Concordion\Internal\XmlSpecificationReader.cs:line
66
em Concordion.Concordion.Process(Resource resource, Object fixture)
em d:\BuildAgent-01\work\a9abc5d6ee8c09c0\Concordion
\Concordion.cs:line 68
em
Gallio.ConcordionAdapter.Model.ConcordionTestController.RunTestFixture
(ITestCommand testCommand, ConcordionTest concordionTest, ITestStep
parentTestStep) em d:\BuildAgent-01\work
\a9abc5d6ee8c09c0\Gallio.ConcordionAdapter\Model
\ConcordionTestController.cs:line 64
em Gallio.ConcordionAdapter.Model.ConcordionTestController.RunTest
(ITestCommand testCommand, ITestStep parentTestStep, IProgressMonitor
progressMonitor) em d:\BuildAgent-01\work
\a9abc5d6ee8c09c0\Gallio.ConcordionAdapter\Model
\ConcordionTestController.cs:line 52
em
Gallio.ConcordionAdapter.Model.ConcordionTestController.RunTestsImpl
(ITestCommand rootTestCommand, ITestStep parentTestStep,
TestExecutionOptions options, IProgressMonitor progressMonitor) em d:
\BuildAgent-01\work\a9abc5d6ee8c09c0\Gallio.ConcordionAdapter\Model
\ConcordionTestController.cs:line 29
em Gallio.Model.Execution.BaseTestController.RunTests(ITestCommand
rootTestCommand, ITestStep parentTestStep, TestExecutionOptions
options, IProgressMonitor progressMonitor) em c:\RelEng\Projects
\MbUnit v3.0.7\Work\src\Gallio\Gallio\Model\Execution
\BaseTestController.cs:line 42
em Gallio.Model.Execution.RecursiveTestController.RunTest
(ITestCommand testCommand, ITestStep parentTestStep,
TestExecutionOptions options, IProgressMonitor progressMonitor) em c:
\RelEng\Projects\MbUnit v3.0.7\Work\src\Gallio\Gallio\Model\Execution
\RecursiveTestController.cs:line 54



I am using Gallio 3.0.7.150 and concordion 1.42.128.

Any suggestions?

x97mdr

unread,
Aug 4, 2009, 6:39:45 PM8/4/09
to Concordion For .Net
Hi Joao,

Did you mark the .html files as embedded resources and/or put them in
the proper directory structure as pictured here:
http://living-in-concordion.blogspot.com/2009/05/your-first-concordionnet-project-part-3.html
?

João

unread,
Aug 5, 2009, 6:25:17 AM8/5/09
to Concordion For .Net
I compiled Calculator.Sample solution and tried to run the
Calculator.Spec dll from Gallio.

I think I have the proper directory structure and .html files:

In the Release folder (created when Visual Studio compiles the
solution), there are the Calculator.dll, Calculator.Spec.dll,
Concordion.dll, OGNL.dll, concordion.css and a sub-folder
Calculator...that has the Calculator.html and the following
subfolders...


Can it be a problem with user account Gallio runs with and windows
vista stuff? I don't have any fancy user administration policy.

thanks,

J


On Aug 4, 11:39 pm, x97mdr <jeffreycame...@gmail.com> wrote:
> Hi Joao,
>
> Did you mark the .html files as embedded resources and/or put them in
> the proper directory structure as pictured here:http://living-in-concordion.blogspot.com/2009/05/your-first-concordio...

Jeffrey Cameron

unread,
Aug 5, 2009, 6:52:07 AM8/5/09
to concordio...@googlegroups.com
OK, did you download the Calculator sample and run it or try and create it yourself?

João

unread,
Aug 6, 2009, 6:02:47 AM8/6/09
to Concordion For .Net
I downloaded it

On Aug 5, 11:52 am, Jeffrey Cameron <jeffreycame...@gmail.com> wrote:
> OK, did you download the Calculator sample and run it or try and create it
> yourself?
>

Jeffrey Cameron

unread,
Aug 6, 2009, 6:41:47 AM8/6/09
to concordio...@googlegroups.com
OK Joao,

I will have some time tonight to look into this for you and see if I get the same problem.

x97mdr

unread,
Aug 6, 2009, 7:35:14 PM8/6/09
to Concordion For .Net
Joao,

My apologies, there was a change I was supposed to make to the sample
project to get it to work with Concordion 0.1.42.128 because there was
a change in the way the specifications are stored and found. I have
made the fix to the sample and uploaded it to the project page. Try
downloading that and see if you're getting the same problem.

The problem is that when specifications are stored as embedded
resources (which was a change brought about in 0.1.42.128) .net
automatically prefixes the default namespace of the assembly to the
front of an embedded resource thus a resource stored in Calculator
\Calculator.html in an assembly with default namespace of
Calculator.Spec is referenced as
Calculator.Spec.Calculator.Calculator.html. This is different from
what was required in previous versions.

Sorry for the confusion! Let me know if you have further troubles.

On Aug 6, 6:41 am, Jeffrey Cameron <jeffreycame...@gmail.com> wrote:
> OK Joao,
>
> I will have some time tonight to look into this for you and see if I get the
> same problem.
>

João

unread,
Aug 7, 2009, 6:57:28 AM8/7/09
to Concordion For .Net
ok. thanks :).
Reply all
Reply to author
Forward
0 new messages