cancel
Showing results for 
Search instead for 
Did you mean: 

Unspecified error

SOLVED
Highlighted
Occasional Contributor

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". 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Hero

Re: Unspecified error

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).

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members 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. Postings made by [Community Expert Group] members
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.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================

View solution in original post

1 REPLY 1
Community Hero

Re: Unspecified error

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).

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members 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. Postings made by [Community Expert Group] members
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.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================

View solution in original post