1173 - 高级自动化脚本技术.pdf

编号:982323 PDF 18页 2.08MB 下载积分:VIP专享
下载报告请您先登录!

1173 - 高级自动化脚本技术.pdf

1、Advanced Automation Script TechniquesJason VenHuizenCPO-Naviam1173Automation Scripts are Customizations2 General conventions and techniques Defining custom objects in JavaScript and Python Passing functions as arguments Importing scripts and reusing libraries Implementing custom Java classes Demonst

2、ration:Implementing server sent events.3IntroductionGeneral Conventions and Techniques Use a main()function to enter the script.Provides a clear execution path Allows global runtime checks Allows code to return Avoids extensive if-then-else logic JavaScript Python5Use a main()Function Do not assume

3、the script was called from an expected event Ensure expected implicit variables are present mbo is not present in all contexts Use present variables to inform context,for example runAsUserInfo is only available for script CrontTasks Check that implicit variables are as expected Validate the mbo type

4、 Validate args are correct Attribute name available for attribute launch points,e.g.wonum6Validate Context and InputsValidate Context and Input Example7JavaScriptPython Configure format on save Ensures clean diffs Consistent formatting between developers Define and enforce corporate linters to avoid

5、 common mistakes Recommended VS Code formatters Prettier for JavaScript Black Formatter from Microsoft for Python8Format on Save File header change logs are for when you dont have source control and arent using VS Code Developer Tools This is pointless:9Stop Using File Header Change LogsDefining Obj

6、ects in JavaScript and PythonServer Sent Event Object11Java ScriptPythonPassing Functions as ArgumentsPass Function as Argument13Java ScriptPythonImporting Scripts and Reusing LibrariesInline a Library Script Source15Java ScriptPythonImplem

友情提示

1、下载报告失败解决办法
2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
4、本站报告下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。

本文(1173 - 高级自动化脚本技术.pdf)为本站 (竿头日上) 主动上传,三个皮匠报告文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三个皮匠报告文库(点击联系客服),我们立即给予删除!

温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。
客服
商务合作
小程序
服务号
折叠