I just answered the question on that thread. That user contacted me through different channels, which makes it harder for everyone to know the answer.
So please ask your questions here, where everybody can profit from them. I am also available in Slack, in case you have some question that you cannot ask in public.
Hi Marduk, Thanks for the great effort on the RoboSAPiens library. Have you already found how we can run the SAPGUI sessions in headless mode? Please let me know if you have any ideas around it? This is to use the same framework for the stress / load testing.
Hi Prakash, I did some research and did not find a way to execute SAP GUI in headless mode. However, I found some information on performance tests for SAP GUI:
In the eCATT documentation I found the following:
GUI Scripting
Use GUI scripting (SAPGUI command) for testing applications that use controls in SAP GUI for Windows and SAP GUI for Java. It requires GUIs for playback and is not suitable for load testing.
I think RoboSAPiens can help with recording test scripts using the SAP tools. Because it does not matter if the GUI is used by a person or by a program. I guess recording the scripts would involve a mixture of manual interaction and automation using āConnect to Running SAPā.
I hope this helps. Please report back if you make some progress with this. Iām sure others will be interested
Were you hoping to use RoboSAPiens library with rfswarm?
If so, I have some ideas how you might be able to run multiple SAP GUIās on the same machine, but Iāve not had the chance to test them yet, there is an issue specifically for this but this thread is probably not the best place to discuss it, maybe create a new thread for āhow to run multiple SAP GUIās on the same machine for rfswarmā and Iāll give you more info there, lets keep this thread for SAP Success stories
Hi, I am using Robosapiens and SAPGUI Library in Robot Framework. I am trying to enter a value in the textfield using the following syntax Input Text wnd[0]/usr/subSCREEN_1:SAPLIQS0:1060/txtVIQMEL-QMTXT username
but getting the error AttributeError: āintā object has no attribute āfindByIdā. Please assist
@orenault Thank you so much for the reply. i dont have label mapped with a text field so i could not use Fill TextField keyword in robosapiens and thats the reason i was trying to use Input TextField keyword in SapGUILibrary.
Hey Marduk,
First of all, thank you very much for the RoboSAPiens library. Iāve used it extensively over the past year, and itās been a huge help for automating SAP process tests.
Iāve run into a challenge regarding session selection when working with multiple open SAP connections.
In my setup, itās common to have up to 4 connections open simultaneously, each with several sessions (up to 6). I also combine RoboSAPiens with SapGuiLibrary, where Iāve built custom logic to iterate over the Connections and Sessions objects, allowing me to connect to a specific connection and its corresponding session (e.g., āPRODā ā session 4).
With RoboSAPiens, Iāve tried the following:
RoboSAPiens.Connect to Server server_name=${connection_name}
perfectly connects to the right connection but doesnt help me further on picking the right session.
If i use the following:
${returns}= RoboSAPiens.Connect to Running SAP session_number=${connection_session}
I am able to pinpoint the correct session number but this does not necessarily mean that im connected to the right connection.
Even when chaining both, I canāt seem to guarantee that Iām connected to both the correct connection and the correct session.
in short an example
the first does connect to connection name āPRODā, but it will connect to the 1 session. So i wont be able to chose āPROD 4ā
the second option makes sure im connecting to the 4th session but it does mean that it the connection could be āTST 4ā instead of āPROD 4ā
using them both doesnt help me either.
Is there a way to combine both ā to select the connection by name (like āPRODā) and specify which session within that connection to attach to (like session 4)?
Iād really appreciate any guidance on this, thanks again for your excellent work.
@muin10 I just released version 2.18.0. In the end I added the optional parameter connection to the keyword Connect to Running SAP. That way you can choose any session from any connection.