简体   繁体   English

使用 Selenium WebDriver/JAVA 自动化大型机作业

[英]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.在我们的项目中,我们使用 Selenium Web 驱动程序来自动化 Web 应用程序。对于其中一个应用程序,我们需要提交一个大型机作业,然后只有一个数据可供下一个应用程序使用。

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.有没有人对使用 JAVA/Web 驱动程序自动化大型机会话有任何想法。

I came to know about Jameleon/Jagacy Driver.我开始了解 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. 您可以使用Java ftp作业。 Which you can add into your Selenium test 您可以将其添加到硒测试中

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

If FTP isnt open on your firewall try telnet 如果防火墙未打开FTP,请尝试telnet

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

For future searchs:对于未来的搜索:

You can submits your job and waits spool to finish.您可以提交作业并等待假脱机完成。

https://github.com/naskarlab/java-mainframe-tools 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());

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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