2012-03-21 4 views
0

OrchardCMS 1.4でSpecFlowテストを実行するにはどうすればよいですか?OrchardCMS 1.4でSpecFlowテストが機能しない

ステップ:hereから

  1. ダウンロードOrchardCMS。
  2. Run UsersFeature.ICanCreateANewUser()テスト。ユニットテストセッション中に(!すべてのソリューションをビルドせず)
  3. 結果 - セッションウィンドウ:

    ... 
    error: Unable to locate <input> name SiteName in page html: 
    
    <html> 
    <head> 
        <title>A 'script' named 'jQuery' could not be found.</title> 
        <style> 
        ... 
        </style> 
    </head> 
    
    <body bgcolor="white"> 
         <span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1> 
         <h2> <i>A 'script' named 'jQuery' could not be found.</i> </h2></span> 
    ... 
    
        <b> Description: </b>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
    
        <br><br> 
    
        <b> Exception Details: </b>System.InvalidOperationException: A 'script' named 'jQuery' could not be found.<br><br> 
    
        <b>Source Error:</b> <br><br> 
    
        <table width=100% bgcolor="#ffffcc"> 
         <tr> 
          <td> 
           <code><pre> 
    
    Line 259:     throw new    InvalidOperationException(String.Format(CultureInfo.CurrentCulture, &quot;A &#39;{1}&#39; named &#39;{0}&#39; could not be found.&quot;, settings.Name, settings.Type)); 
    Line 260:    } 
    <font color=red>Line 261:    ExpandDependencies(resource, settings,   allResources); 
    </font>Line 262:   } 
    Line 263:   requiredResources = (from DictionaryEntry entry in allResources</pre></code> 
    
          </td> 
         </tr> 
        </table> 
    
        <br> 
    
        <b> Source File: </b>   ...OrchardCMS_1.4\src\Orchard\UI\Resources\ResourceManager.cs<b> &nbsp;&nbsp; Line: </b> 261 
        <br><br> 
    
        <b>Stack Trace:</b> <br><br> 
    
        <table width=100% bgcolor="#ffffcc"> 
         <tr> 
          <td> 
           <code><pre> 
    
    [InvalidOperationException: A &#39;script&#39; named &#39;jQuery&#39; could not be found.] 
    Orchard.UI.Resources.ResourceManager.BuildRequiredResources(String resourceType) in F:\coding\zulatm\OrchardCMS_1.4\src\Orchard\UI\Resources\ResourceManager.cs:261 
    Orchard.Core.Shapes.CoreShapes.WriteResources(Object Display, TextWriter Output, String resourceType, Nullable`1 includeLocation, Nullable`1 excludeLocation) in F:\coding\zulatm\OrchardCMS_1.4\src\Orchard.Web\Core\Shapes\CoreShapes.cs:354 
    CallSite.Target(Closure , CallSite , CoreShapes , Object , TextWriter , String , ResourceLocation , Object) +420 
    System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid6(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5) +1323 
    Orchard.Core.Shapes.CoreShapes.HeadScripts(Object Display, TextWriter Output) in F:\coding\zulatm\OrchardCMS_1.4\src\Orchard.Web\Core\Shapes\CoreShapes.cs:286 
    
    
    </body> 
    

私が試したSpecFlow内のすべてのテストケースのために示されています。

+0

まだ果たしていない場合は、果樹園のディスカッションフォーラムでこれを上げるほうが、より効果的/適切である可能性が高いです。http://orchard.codeplex.com/discussions – forsvarir

答えて

0

1.4リリースをダウンロードするのではなく、ソース参加を試しましたか?

+0

ありがとうございました。うまくいけば解決策を見つけました。 – Artyom

0

すべてのソリューションを構築しませんでした。したがって、Jqueryモジュールはビルドされておらず、そこにはJQueryスクリプトファイルはありません。愚かな間違い!