简体   繁体   English

Appian UI 自动化

[英]Appian UI automation

I am try to integrate the karate with #Appian low code platform application UI, facing some issue我正在尝试将空手道与#Appian 低代码平台应用程序 UI 集成,面临一些问题

  1. failed to pass the dynamic data (except hard codded data)动态数据传递失败(硬编码数据除外)
  2. failed to automate editable grid无法自动化可编辑网格
  3. failed to automate some UI component available only in Appian无法自动化某些仅在 Appian 中可用的 UI 组件

Can any one give the solution to pass the data dynamically in ui automation任何人都可以提供在 ui 自动化中动态传递数据的解决方案吗

respond to failed to pass the dynamic data (except hard codded data) you can try this, it worked for me响应未能传递动态数据(硬编码数据除外)你可以试试这个,它对我有用
data.json { "username": "ABC", "password": "ABC@123" } data.json { "用户名": "ABC", "密码": "ABC@123" }

Feature file:特征文件:

  • def data= read('data.json') def data= read('data.json')
  • def username = data.username def 用户名 = 数据.用户名
  • def password = data.password def password = data.password

And input('input[name=un]', username)和输入('输入[name=un]',用户名)

And input('input[name=pw]', password)并输入('input[name=pw]', password)

@tags1
Scenario Outline: Login with demo
Given driver "https://www.saucedemo.com/" 
And input("//*[@id='user-name']","<username>")
And input("//*[@id='password']","<pass>")
And  click("//*[@id='login-button']")
Examples:
|username|pass|
|standard_user|secret_sauce|
|locked_out_user|secret_sauce|

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

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