Micro Focus QTP (UFT) Forums
Exe invoked through UFT is unable to access IIS and SQL Server service - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Exe invoked through UFT is unable to access IIS and SQL Server service (/Thread-Exe-invoked-through-UFT-is-unable-to-access-IIS-and-SQL-Server-service)



Exe invoked through UFT is unable to access IIS and SQL Server service - bkdevise - 08-25-2015

Hi all,

We have a configuration wizard(.exe) which configures the prerequisites in which it access the SQL Server service and IIS.
When i am invoking this exe through UFT, it seems exe is unable to access the SQL Server service and an error is thrown "Run time error '430': Class does not support Automation or does not support expected interface"

The exe internally uses the windows script file to check that WebFolder exists or not. Even though the web folder is present in IIS, exe is throwing an error " WebFolder does not exist"

But this wizard(exe) is working fine, when i invoke the exe manually. No errors are thrown.

The command i have used is:

Code:
SystemUtil.Run "Wizard(exe) complete path","","wizard(exe) directory location ",""

I feel the problem is with the access when UFT invokes the exe but the same exe if i invoke manually it is able to access the IIS and SQL SERVER.

I have already posted the issue in HP forum but reply couldn't solve the issue.
http://h30499.www3.hp.com/t5/Unified-Functional-Testing/Exe-invoked-through-UFT-is-unable-to-access-IIS-and-SQL-Server/m-p/6776838/highlight/false#M13864