Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE
XsiSec Absent Member.
Absent Member.
599 views

Silk Test with Rumba Terminal Emulator set a session

Jump to solution

Hello people,


This is my code below:

package Terminal;

import com.borland.silktest.jtf.BaseState;
import org.junit.Before;
import org.junit.Test;
import com.microfocus.silktest.jtf.wpf.WPFMenu;
import com.microfocus.silktest.jtf.rumba.RumbaScreen;
import com.microfocus.silktest.jtf.rumba.RumbaTextField;
import com.borland.silktest.jtf.Desktop;
import com.microfocus.silktest.jtf.wpf.WPFListBox;
import com.borland.silktest.jtf.PushButton;
import com.microfocus.silktest.jtf.wpf.WPFWindow;

public class TestCase {

private Desktop desktop = new Desktop();

@Before
public void baseState() {
BaseState baseState = new BaseState();
baseState.execute(desktop);
}

@Test
public void Initialize() {

//start recording
desktop.<WPFListBox>find("Welcome to Rumba 8 1.RecentSessionsList").select("Mainframe Display.rsdm");
desktop.<PushButton>find("Mainframe Display - Micro Focus Rumba.Micro Focus Rumba License Message.OK").select();
desktop.<WPFWindow>find("Mainframe Display - Micro Focus Rumba").setActive();
desktop.<WPFMenu>find("Mainframe Display - Micro Focus Rumba.mnuClassic").select("/_Connection/Co_nnect");
desktop.<RumbaScreen>find("Mainframe Display - Micro Focus Rumba.Screen").waitForHostConnected();
//end recording
}

}


How do I make the code select a certain session i have saved in rumba as "*.rsdm"?

Thank you in advance

Tags (3)
0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Silk Test with Rumba Terminal Emulator set a session

Jump to solution

The best way would be to open the session from the menu, not the welcome screen. So your code needs to include clicking File and then Open Session Profile.

Then enter the name of the session (Mainframe Display.rsdm) into the text field and click OK.

Basilios Will
Technical Author


Micro Focus

0 Likes
1 Reply
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Silk Test with Rumba Terminal Emulator set a session

Jump to solution

The best way would be to open the session from the menu, not the welcome screen. So your code needs to include clicking File and then Open Session Profile.

Then enter the name of the session (Mainframe Display.rsdm) into the text field and click OK.

Basilios Will
Technical Author


Micro Focus

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.