Window7, 64bit
Katalon Studio; Version: 6.0.6; Build: 4
Version 73.0.3683.86 (Official Build) (64-bit)
Hello folks,
I am looking to use “SocialInsuranceNumber.generate()” to create random Canadian SINs (Social Insurance Numbers) in some of our test cases; howver I am not sure of how to implement the Javascript in Katalon Studio. See: “https://github.com/wealthsimple/social-insurance-number”. Can anyone provide an example of how it could be implemented?
Thanks in advance,
Dave
hello,
I have done it with python but it will generate only Finnish ssn.
python is called from Katalon
Runtime.getRuntime().exec("python "+ssnDir+"/ssn.py")
python script will save generated ssn to .txt file and which is read in Katalon
//get ssn from file
File file = new File(ssnDir+"/ssn.txt");
BufferedReader br = new BufferedReader(new FileReader(file));
String st;
while ((st = br.readLine()) != null){
System.out.println(st);
ssnData = st
}
Thanks Timo, I will check into your suggestion.
Best regards,
Dave