Contributions
How do I get the current keyword test name from my scrip using JavaScript
I have a keyword test that starts then runs a script (JavaScript). I want to pass the keyword test name into the script to get a variable from the keyword test so that I can run a tested app. This is the script that I tried, But I get an error. let r; // Get the variable value of the current keyword test r = KeywordTests.r.Variables.Var1 (This is where the error occurs) Log.Message("Message tested app to Run ->" + r); //below runs batch file tested app from variable r = eval("TestedApps." + r + ".run()"); (This runs fine) The error is TypeError: Cannot read property 'Variables' of undefinedSolved512Views0likes1CommentPDF.ConvertToText
I have a standard PDF that I use as my base line PDF. My application creates a new PDF to compare it to. Sometimes but not always when I use the PDF.ConvertToText method, the actual text is not the same. The only difference that I can see when I look at the 2 PDF's are the dates and times on them. Everything else is exactly the same. I use this method: var regEx = /\d{1,2}\/\d{1,2}\/\d{4}/gm; // using re.sub method to replace dates with a constant str str1 = str1.replace(regEx, "<ignore_date>") to replace the dates & times in text. // time regex regEx = /\d{1,2}:\d{1,2}:\d{1,2}\s((AM)|(PM))/gm; // using re.sub method to replace times with a constant str str1 = str1.replace(regEx, "<ignore_time>") str2 = str2.replace(regEx, "<ignore_time>") to replace the dates & times.415Views0likes0CommentsWaiting for batch file (tested app) to complete before continuing keyword test
I am running a batch file that refreshes my database to test my desktop application. How do I make it wait for the batch file to finish before it continues running the rest of the keyword test? I run different batch files in different keyword tests so they all do not take the same time to run. I am trying to speed up my tests for better efficiency.629Views0likes3Comments