After much testing, I think I found the issue. If a testcase has a large number of variables, then the opening or saving of that testcase gets very slow. If I create a testcase with no variables, save is very quick. I just add variables, then it becomes very slow to save. The rest of testcase can be empty.
I am now creating a new testcase and slowly adding variable of different types one by one to see when the saving gets slow. I will let you know the results soon.
Results: after adding the 5th variable (I used String, Number, String, Number, String) it starts to get slow to save. I close the file and reopen and it is slow to load.
Something changed in variable handling to cause this.
Would you try installing it under the C:\Users\yourOsUsername folder where your Windows user have full access privilege so that KS can surely WRITE files into ?
They rely on those plugins which I have from Katalon managed plugins.
We cannot run under our user accounts since it is managed by our security group. Thy prevent us from installing or running anything in c:\users… (They scan and remove things)
If you noticed earlier, I found the issue is with testcase variables. I got the rest of our team to reproduce my findings, and in all cases, 5 or more variables start to slow down save and open of a testcase. The more variables the slower. This does not happen in 7.8.2, and I will be retrying in the 7.9 series as well.
@Kazurayam I tried under my user account and it still takes 8 to 10 seconds. Like I mentioned earlier, it is tied to the number of variables in a testcase. After the 5th variable is added, the performance of open and save starts to be noticeably slower. Try it on yours. create a testcase, could be empty, and start adding variables. You will see it get slower and slower to save.
You shared your test case script. I made a project where I made a test case with your code. I can open, save, update it quickly. I don’t see any slowness. Your issue seems to be hard to reproduce on in other’s environment.
Noticed similar slow performance on a totally fresh install of Katalon Studio 8.0.1 on Windows 10 (1909).
The project is a small demo project with 4 scenarios in a feature file along with a groovy script in default package for step definitions. If separate step methods are defined for each scenario (example) then the error is resolved.
Event log has the following - CodeSelectRequestor: Could not proceed due to null declaring type for org.codehaus.groovy.ast.expr.ConstantExpression
Maybe related error - does not have matching glue code for example in line xyz.
feature file
Scenario Outline: Scenario_Name
Given I have to run Param1 <Param1> Param2 <Param2> Param3 <Param3> Param4 <Param4> Param5 <Param5>
| Param6 |
| P6Val1 |
When I start
Then result should be success
Examples:
| Scenario | Param2 | Param3 | Param1 | Param4 | Param5 |
| Scenario1 | P2Val1 | P3Val1 | P1Val1 | P4Val1 | P5Val1 |
| Scenario2 | P2Val2 | P3Val2 | P1Val2 | P4Val2 | P5Val2 |
groovy file
@Given("I have to run Param1 (.*) Param2 (.*) Param3 (.*) Param4 (.*) Param5 (.*) Param6 (.*)")
def I_have_to_run_Param1_Param2_Param3_Param4_Param5_(String Param1, String Param2, String Param3, String Param4, String Param5, String Param6) {
// Write test here
}
I remember I saw a lot of variable names in the code were underlined; that would mean the names were supposed to be declared in the variables tab; but I left them underlined. I could edit the code, save it, open/close it quickly.
@kazurayam@duyluong
You need to add one variable at a time to the variables tab, and save after each. Once you reach 5, it will start to be noticeably slower, The more you add, the slower… This does not happen in the 7.8.2 release, and I still need to verify it did not happen in the 7.9.x releases, but I do not recall any issues . I really notice it in the 8.0.x versions.
In Katalon Studio v7.9.1 I made new project, a Test Case where I copy & pasted the code you previous ly shared to us. In the variable tab, I defined 6 variables. I could close, open, edit it just quickly. I could not reproduce your problem.
I think you should create a minimum project where you can reproduce your slowness problem and violates no security concern; and then share it to us.
I could reproduce the slowness problem of Katalon Studio v8.0.x.
I used Mac OSX 11.4.
I compared Katalon Studio 7.9.1 and 8.0.1.
Here I attache a sample project zipped:
I double click the Test case to open it. I measured the time seconds taken.
With v7.9.1 it took 5 seconds or shorter. I saw no progress indicator displayed.
With v8.0.1 it took 15 seconds or longer. With v8.0.1 when I double click the file icon, an progress indicator came up for seconds long enough to irritate me. With v8.0.1, I checked the .log file and found no Exception was raised.
It looks to me that v8.0.1 has become just slower than v7.9.1 when I try to open a Test Case with 20 variables defined in the Variables tab.
I can see what it is. The content of “Variables” tab is serialised into this file.
Just I guess, with no backings, that Katalon Studio v8.0.1 reads and parses this XML file 20 times when I double clicked the Test Case icon to open it in the Editor. It reads the file and recognise 1 entry, and forget it. It reads the file again and recognise the 2nd entry, and forget it. … continue until the end of the XML file.
I tried with the latest 8.0.5, and no luck. I also tried switching jre to Zulu from Oracle, and it also had no effect on the long open and saves of Test cases with many variables defined in the variable tab. All of our users will be staying with 7.9.1 until this is resolved.
Let me know if their is any other information I can provide.
Good morning @duyluong@ThanhTo, Any news on this? Our project team is stuck on version 7.9.1 and we would like to take advantage of new features, fixes, and improvements in the latest releases.