Phantom/Caperjs User input

拜拜、爱过 提交于 2019-12-24 07:37:10

问题


I have this script

// Prompting user to specify the domain and acting on domain
system.stdout.writeLine('Enter the domain to test - "UAT1","UAT2","RC" or "LIVE" :');
var testingENV = system.stdin.readLine();

In addition there are other part of my test script which relies on user input

system.stdout.writeLine('Enter your NRIC number :');
var NRICno = system.stdin.readLine();

system.stdout.writeLine('Enter your Mobile number in the follwing format (+6588888888) :');
var MOBno = system.stdin.readLine();

Currently the script work fine using sytem.stdin.readline()

I was wondering if i want to create a web interface for testers to test and interact with the script how would i go about doing that .

来源:https://stackoverflow.com/questions/24217970/phantom-caperjs-user-input

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!