如果JAR文件是从一个LeanFT项目生成并在不使用IDE的情况下执行的,那么LeanFT如何检查许可状态?在这种情况下,LeanFT运行时引擎没有启动,许可证服务器的URL也没有存储在jar文件中。
发布于 2018-07-03 08:25:22
LeanFT不仅仅是那个.jar文件,引擎逻辑也发生在其他地方。大致上,LeanFT由两个主要部分组成:
.jar文件,但可能是一个.cs或.js测试,并将采取相同的行动。Browser.launch和Element.click的代码。
命令所做的整个过程大致如下:
LFT.init在代码中的某个地方执行。- It initiates the connection with **the right** socket server, configured either in a properties file (for java, it is `leanft.properties` file), or at runtime, via a configuration object (for java, it is a `ModifiableSDKConfiguration` object). Some _minimal_ guidance regarding this configuration can be found [here](https://admhelp.microfocus.com/leanft/en/14.03/HelpCenter/Content/HowTo/CustomFrameworks.htm)
- this server can be on any computer on the accessible network, but the engine must be there too! (there are a lot of details regarding this [here](https://admhelp.microfocus.com/leanft/en/14.03/HelpCenter/Content/HowTo/RunRemotely.htm))
- Without this command, the test will fail because any command (like `click`) can't execute as there is no WS connection
Element.click在代码后面的某个地方执行形象化,它是这样的:

https://stackoverflow.com/questions/51090913
复制相似问题