Unspecified error
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Unspecified error
Hello Team,
I am executing scripts for desktop application using vbscript. While executing the project suite I am getting error as "VBScript runtime error. Unspecified error Error". Please find below piece of code which I am executing:
Function addopsignal
dim path
path=Project.Path
Set driver = DDT.ExcelDriver(path& "TestData\PrjData.xlsx","AddOutputSignal",true)
log.Message(DDT.CurrentDriver.Value(0))
Set testStandDesigner = Aliases.TestStandDesigner
set pan = Aliases.TestStandDesigner.form2.ShellView
OpenPanel = pan.Menu.WPFMenu.Click("Teststand|Configure Automat")
Delay(500)
I am getting error at highlighted line.
Please note when I am executing single script(only one script) it is executing properly; but when I am executing entire project suite it is giving error as "Unspecified error".
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Considering that this line of code works for the single test and fails when called multiple times (the latter is my guess based on your statement that the failure occurs when running test suite ), I think that it may be because the driver is not closed and the 'driver' variable is not disposed of.
The above can happen because DDT uses OLE DB in the background and by default OLE DB allowes not more that 32 simultaneous connections to the same resource (file).
/Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
