- Community Home
- >
- Welcome
- >
- Other HPE Product Questions
- >
- QTP needs to be restarted for system environment v...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2017 05:08 AM
06-19-2017 05:08 AM
QTP needs to be restarted for system environment variable changes to take effect
QTP needs to be restarted for system environment variable changes to take effect
I am changing MQSERVER variable to a value that I need runtime using . This is required to access websphere MQ
Set objWSH = CreateObject("WScript.Shell") Set objSystemVariables = objWSH.Environment("SYSTEM") objSystemVariables(MQVariableName) = MQVariableValue
But when I try to read a valid queue manager, it gives me error 2058 ( MQRC_Q_MGR_NAME_ERROR)
When I restart QTP, that environment variable reflects and I can access MQ manager successfully without changing any code. What is the best way to not have to restart QTP in these circumstances.
- Tags:
- QTP
- SW
- WebsphereMQ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2017 01:21 AM
06-25-2017 01:21 AM
Re: QTP needs to be restarted for system environment variable changes to take effect
This is the wrong forum (and in the future the wrong company) for software questions.
https://community.saas.hpe.com/