Open HP ALM by code - alm

Does anyone know if it's possible to launch Internet Explorer, open HP ALM and login with credentials by OTA code or some other way?
I would like to have a program in my computer, that when I run, opens HP ALM logged already.
It's clear for me how to launch Internet Explorer and go to HP ALM site by VBScript with SystemUtil.Run, but it doesn't work to login at ALM, right?!
It's also clear for me how to connect ALM via OTA and work with all kind of data inside ALM, but it doesn't open the ALM in Internet Explorer, as this is just a backend connection.
So, is there another way?
Thanks.
Renan Gaspar.

I get the concern. I have an approach which will work. Why not try with some automation tools like SELENIUM or QTP which can automate this activity in a single click?
The same can be written using C# if you are aware of it(Since you know vbscript), Selenium supports C#.
Anyways, I am posting a VBS code to automate this job
Option Explicit
Dim ie,x
Set ie = CreateObject("InternetExplorer.Application")
Set x = WScript.CreateObject("WScript.Shell")
ie.Navigate "<YOUR ALM URL>"
ie.Visible=1
wscript.Sleep 7000
x.sendkeys "<USERNAME>"
wscript.Sleep 2000
x.sendkeys "{TAB}"
wscript.Sleep 2000
x.sendkeys "<PASSWORD>"
wscript.Sleep 2000
x.sendkeys "{TAB}"
x.sendkeys "{TAB}"
wscript.Sleep 2000
x.sendkeys "{enter}"
This is just the AUTHENTICATION section.
Sleep time is set based on system performance, since everything runs and interacts with the thick client of HP ALM in the system. To choose project, you can use the sendkeys option again according to your requirement.
Hope this helps.

Related

How to change link opening on Outlook and Teams on Macintosh?

I am using Microsoft Excel, Teams and Outlook on Mac. Always if there is a Link in a E-Mail, a Chat in Teams or a Excel Document Safari is opening.
Where can I change this simple Setting on Mac? I always want to open other Browser like Firefox.
I read all Microsoft description, but they are not for Mac use.

VBA macro freeze on locked screen

I'm using automate excel vba macro send emails. I want to set it in Task Scheduler to make it automate. When screen is not locked everything works perfect, but when set Task Scheduler and lock the screen the macro stop at below moment. It doesn't return any errors. It just stop and shows blank new email window in outlook app.
Do you know if there is any option to fix that?
Dim xInspect As Object
Dim pageEditor As Object
Set xInspect = OutMail.GetInspector
Set pageEditor = xInspect.WordEditor
Worksheets("Email_Sender_Body").Range("K1:K" & row_count_body).Copy
pageEditor.Application.Selection.Start = Len(.Body)
pageEditor.Application.Selection.End = pageEditor.Application.Selection.Start
pageEditor.Application.Selection.PasteAndFormat (wdFormatPlainText)
.Display
Set pageEditor = Nothing
Set xInspect = Nothing
I want to set it in Task Scheduler to make it automate
Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit unstable behavior and/or deadlock when Office is run in this environment.
If you are building a solution that runs in a server-side context, you should try to use components that have been made safe for unattended execution. Or, you should try to find alternatives that allow at least part of the code to run client-side. If you use an Office application from a server-side solution, the application will lack many of the necessary capabilities to run successfully. Additionally, you will be taking risks with the stability of your overall solution.
Read more about that in the Considerations for server-side Automation of Office article.
As a possible workaround you may consider using the Open XML SDK if you deal with open XML documents only, see Welcome to the Open XML SDK 2.5 for Office for more information. Or you may also consider third-party components designed for the server-side execution.
A low-level API on which Outlook is based can be used from a Windows service - Extended MAPI. Or in case of Exchange server accounts you may use EWS or Graph API. See Explore the EWS Managed API, EWS, and web services in Exchange for more information.

Excel VBA Opening Internet Explorer

I used to call an application from VBA/Excel. This was done via Internet Explorer and without human intervention.
This week, Windows 11 was installed. Now MS Edge opens automatically and invariably asks if the application should be opened.
Is there any way that I can skip this question? The application is working perfectly, but I just want to automatically open the application.
Set IE = CreateObject("InternetExplorer.Application")
With IE
.Visible = False
.navigate "https://robostorage.blob.core.windows.net/clickonce/PbnPlayer/RoboBridge.PbnPlayer.application?pbnFileName=" & oefRobInp
End With

How do I allow access to Office applications automation object from standard users in Windows 10?

I have several automation scripts that I wrote to move information in and out of Office applications using VBA. I put all of these together using Office 2003 on a Window 7 computer.
My organization finally got around to moving over to using Windows 10 and Office 2016, and the changeover broke all of the scripts that open one application from the other.
Each script uses these two lines to start the other application:
Dim objExcel As Excel.Application
Set objExcel = CreateObject("Excel.Application")
If I run this snippet from Word started as a standard user, I get an error saying, "Run-time error '429':
ActiveX component can't create object" and debugging tells me the error is from the 'CreateObject' line.
If I run Word as an Administrator, though, Excel starts like I expect it to and I'm able to work with the application object.
I don't want to have to run the application or the automation scripts as an administrator. I'm guessing this is a configuration issue, but my google-fu is failing me.
How do I allow access to the Office applications automation object model from standard users in Windows 10?

Default browser in excel addin

I am working on Excel add-in but I am new in office.js.
I would like to know if there is a way to set a browser different from IE 11 as default browser to open the add-in.
I saw the same question on URL below, but I didnĀ“t find if the API mentioned on the answer was developed.
How to set the default browser in word addin
I'm afraid that there is currently no API to determine which browser is used when the add-in is running in desktop Office on Windows. (If it is running in Office Online, then of course it opens in whatever browser you are using.)

Resources