For some reason, sooner or later, I face the following issue:
- whilst working on a “custom keyword” (e.g. model, builder, factory), I face a slew of errors claiming the project dependencies don’t exist.
For example: I am working on a factory class, right now, and on importing the dependencies, I get a slew of errors stating that every single business keyword class that I imported can’t be resolved.
It seems to eventually happen no matter what piece of business logic I’m working on. Here’s an example though:
com.xxx.factories.MemberLeadFactory.groovy
package com.xxx.factories
import com.github.javafaker.Address
import com.github.javafaker.DateAndTime
import com.github.javafaker.Faker
import com.xxx.enums.Category
import com.xxx.enums.Frequency
import com.xxx.enums.PaymentMode
import com.xxx.models.memberLead.MemberLeadModel
import com.xxx.utils.SMDDateUtils
public class MemberLeadFactory {
protected Faker faker;
protected Address addressFactory;
protected DateAndTime dateAndTimeFactory;
public MemberLeadFactory() {
this.init();
}
protected void init() {
this.faker = new Faker();
this.addressFactory = faker.address();
this.dateAndTimeFactory = faker.date();
}
public MemberLeadModel createNamedFromFrequency(Frequency frequency, String firstName, String lastName) {
return new MemberLeadModel(firstName,
lastName,
"3175555555", // TODO: use faker number
"3175555555", // TODO: use faker number
addressFactory.streetAddress(),
addressFactory.city(),
addressFactory.stateAbbr(),
addressFactory.zipCode(),
"dev+QuarterlyMember@email.com",
Category.MEMBERSHIP,
frequency,
dateAndTimeFactory.birthday(),
true,
SMDDateUtils.toDate("10-01-2021"),
SMDDateUtils.toDate("10-15-2021"),
PaymentMode.CHECK,
);
}
}
All the business enums, models, and utils have existed looong before writing this factory, at the fully-qualified package names specified, in the Keywords folders. As a matter of fact, they got brought in automatically via CTRL + Shift + O
.
Please let us know what you are using Katalon Studio for?
- I’m exploring the tool
- I’m building a Proof of Concept
3. I have currently applied Katalon Studio in my project - I’m learning automated test with Katalon Studio
How would your work be affected if this issue has not been resolved?
- It doesn’t affect much, but I believe Katalon team should have this ticket resolved
- I can continue my job, resolving this ticket can boost my performance
- I can continue my job, but my performance is lower than expected
4. I cannot continue my job and have to work on something else while awaiting your response
Operating System
Windows 10
Katalon Studio Version
Version 8.1
Katalon Studio logs
-
Windows logs folder: \config.metadata.log
-
macOS logs folder: file:///Applications/Katalon%20Studio.app/Contents/MacOS/config/.metadata/log
Screenshots / Videos
- Please attach screenshots or videos if necessary to reproduce the issue
Environment (for Web testing):
Chrome (but that’s irrelevant)
Expected Behavior:
I am able to continue working, without issue
Actual Behavior:
A slew of issues all over just the business class imports: