I have an external Tool that creat’s test suites for Katalon Recorder.
But Katalon Recorder will not import these test suites … there is no error message
I have created one simple test suite with katalon and then one with my tool, both test suites looks the same, the content is the same, both files are UTF-8 formated …
There is no such topic.
You are developing a certain “external tool” and you complain the artifacts produced by this tool are not compatible with Katalon tools.
Is that fair to ask for the community support?
What? Why are you conplaning?
I think it should be normal for every tool that if you try to open an invald element an error occurs
Is that fair to ask for the community support?
I havent asked the community for support, I asked if the developver can add an error message
All I want is an error if you try to Import an invalid suite …
Because you asked that nice: The “external” tool is a simple VBA (Macro) code, that creates a test suite to automate repeated tasks on a website.
Open File For Append As #1
Print #1, HTMLHeader & GoToTestPage
For i = 3 To LastRow
If Worksheets("Sheet1").Range("A" & i).Value = "True" Then
TestStep = Worksheets("Sheet").Range("C" & i).Value
ClickTestPage = "<tr><td>click</td><td>link=" & TestStep & "<datalist><option>link=" & TestStep & "</option></datalist></td><td></td></tr><tr><td>selectWindow</td><td>null</td><td></td></tr>"
Print #1, AddTestString & ClickApply & SelectWindow & ClickOK
End If
Next
Print #1, ClickApply & HTMLFooter
Close #1
Call AnsiZuUtf8Datei(File, True)
We really don’t need to see your VB code – we’ll leave that aside for now.
The best person to review this is probably @ThanhTo but I’m not sure if he’s around these days (maybe @sara.leslie can pass this along).
As to your suggestion that an error be issued for incompatible suite imports, I’d say yes. Let’s see what these guys think: @albert.vu@vu.tran
Regarding the XML/XHTML in the image posted above, and the use of <datalist> elements (without associated <input> elements), that’s poor design on Katalon’s part. The <datalist> element is not allowed inside <td> elements, AFAICT.
Got it, I was just curious how do you produce it, by rendering certain objects or by ‘raw’ string appending. Now I think I understand what you intend to achieve.
If you add the missing empty <option></option> and / or <datalist></datalist> does it work? Let’s try to locate which one is ‘offending’, only one of them or both.
After that, I think that may be a subject to another bug / git issue, since the ‘working’ html it is far away from being ‘standard’ but just strange.
If not, is even more strange, I don’t see any other differences between the two.
Sorry, I am known to be lazy so I am not in mood to install KR only for this.
Could be that the test case ‘input’ HTML is used as a template and is later manipulated by certain .js scripts or whatever else.
Just guessing, yet again, I am lazy to install KR and inspect further how this html is rendered by the application (and / or dig into the code)
LE: the source of the ‘load testcase’ functionality may be tracked from, hard to say.
Long time since I used .js, those seems to be some tests:
@kazurayam@Kalle
If I guessed right and the code is the one from my above post, looks like in such cases a certain message has to be logged in the console:
Can one of you repeat the test and watch if such is logged?
If yes, I suppose from here the first part will be easy, the developer (or a certain contributor) may only have to add an ‘alert’ since the error is already catched.
I think that the console is not an appropriate place to output the message because I would NEVER look at the console when I am operating Katalon Recorder.
I personally think that the JavaScript Alert dialog is a poorman’s band-aid. The productional software should not use the Alert as a part of UI.
I think the KR developer was a bit lazy in handling the error which you pointed out.