VSTS Web负载测试失败,异常在DataSource中找不到表名 [英] VSTS Web Load Test Failed with Exception No table name was found in the DataSource
问题描述
我正在开发内部网络基础应用程序。脚本工作得很早,直到我重播脚本它失败并出现以下错误。
我记得上次我将数据源文件移动到脚本文件夹文件中。当我看到此错误消息时,我将该文件返回到同一位置但问题仍然存在。可以帮我吗?
请求失败:PreWebTest事件中的异常:在DataSource中找不到名为''的表'' / p>
在Microsoft.VisualStudio.TestTools.WebStress.WebTestSuiteDataManager.MoveDataTableCursor(String dataSourceName,String dataTableName,WebTest webTest,IDictionary`2 contextVariables,Int32 newRowIndex)
在Microsoft.VisualStudio.TestTools.WebStress.WebTestCaseVariation.MoveDataTableCursor(String dataSourceName,String dataTableName,Int32 newRowIndex)
在Microsoft.VisualStudio.TestTools.WebTesting.WebTest.MoveDataTableCursor(String dataSourceName,String dataTableName,Int32 newRowIndex)
at UniqueOnce.UniqueOnceMyRequets.PreWebTest(Object sender,PreWebTestEventArgs e)
在System.EventHandler`1.Invoke(对象发件人,TEventArgs e)
在Microsoft.VisualStudio.TestTools.WebTesting.WebTest.OnPreWebTest(PreWebTestEventArgs e)
在Microsoft.VisualStudio.TestTools.WebTesting.DeclarativeWebTest.OnPreWebTest(PreWebTestEventArgs e)
在Microsoft.VisualStudio.TestTools.WebTesting.WebTest.InvokePreWebTest()
在Microsoft.VisualStudio.TestTools.WebStress.WebTestCaseVariation.Start()
Hi Hussain,Syed,
不使用VSTS,您是否可以在本地成功运行负载测试?
如果可能,只需单独运行Web性能测试而不将其添加到负载测试中,查看结果。
您似乎在自己身边使用了网络测试插件,但它无法连接到您身边的数据源。你是如何连接到你身边的数据库的?也许您可以使用编码的Web性能测试来调试Web性能测试,然后
找到引发异常的代码行。
最好的问候,
杰克
I am working on an internal web base application. script was working fine earlier, to day when i replay script it failing with following error.
I remember that last time i move datasource file into script folder file. when i saw this error message i return back that file to same location but problem still exist. Can any help me on this?
Request failed: Exception in PreWebTest event: No table named '' was found in the DataSource ''
at Microsoft.VisualStudio.TestTools.WebStress.WebTestSuiteDataManager.MoveDataTableCursor(String dataSourceName, String dataTableName, WebTest webTest, IDictionary`2 contextVariables, Int32 newRowIndex)
at Microsoft.VisualStudio.TestTools.WebStress.WebTestCaseVariation.MoveDataTableCursor(String dataSourceName, String dataTableName, Int32 newRowIndex)
at Microsoft.VisualStudio.TestTools.WebTesting.WebTest.MoveDataTableCursor(String dataSourceName, String dataTableName, Int32 newRowIndex)
at UniqueOnce.UniqueOnceMyRequets.PreWebTest(Object sender, PreWebTestEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at Microsoft.VisualStudio.TestTools.WebTesting.WebTest.OnPreWebTest(PreWebTestEventArgs e)
at Microsoft.VisualStudio.TestTools.WebTesting.DeclarativeWebTest.OnPreWebTest(PreWebTestEventArgs e)
at Microsoft.VisualStudio.TestTools.WebTesting.WebTest.InvokePreWebTest()
at Microsoft.VisualStudio.TestTools.WebStress.WebTestCaseVariation.Start()
Hi Hussain, Syed,
Not use the VSTS, could you just run your load test successfully locally?
If possible, just run your web performance test singly without adding it to the load test, view the result.
It seems that you use the web test plug-in in your side, but it couldn't connect to your data source in your side. How did you connect to the database in your side? Maybe you could debug your web performance test with coded web performance test, and then find the code line which threw the exception.
Best Regards,
Jack
这篇关于VSTS Web负载测试失败,异常在DataSource中找不到表名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!