简体   繁体   中英

Automation of Mainframe jobs using Selenium WebDriver/JAVA

In our project, we are using Selenium Web driver to automate web application.For one of the application, we need to submit a mainframe jobs and then only a data will be available for next application.

As we were not able to automate mainframe jobs, there is always gap between two application and we were not able to achieve end to end scenarios.

Does anyone have any idea on automating mainframe session using JAVA/Web Driver.

I came to know about Jameleon/Jagacy Driver. But not much information is available.

Its really helpful to me if someone share thoughts on achieving this.

You can ftp your job using Java. Which you can add into your Selenium test

http://www.ibm.com/developerworks/systems/library/es-batch-zos.html

If FTP isnt open on your firewall try telnet

请尝试通过批处理文件提交大型机作业,然后通过Java触发该批处理文件。

For future searchs:

You can submits your job and waits spool to finish.

https://github.com/naskarlab/java-mainframe-tools

JESClient ftp = new JESClient();
ftp.connect("192.168.15.101");
if(!ftp.login("IBMUSER","SYS1")) {
    throw new IllegalArgumentException("Error on connect.");
}

JESJob job1 = ftp.submit(this.getClass().getResourceAsStream("/jcl/NKCOMP.jcl"));

logger.info(job1.toString());
job1.waitComplete(120);

logger.info(job1.waitSpool(3));
logger.info(job1.getSpool());

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM