kazurayam / inspectus

The Inspectus library enables automated UI tests in Java/Groovy to perform "Visual Inspection" on top of the "materialstore"
Apache License 2.0
0 stars 0 forks source link

the constructor of com.kazurayam.inspectus.katalon.KatalonChronosDiff should take an argument of type Environment #94

Open kazurayam opened 1 year ago

kazurayam commented 1 year ago

v0.9.6, I have the following signature of com.kazurayam.inspectus.katalon.KatalonChronosDiff class:

    public KatalonChronosDiff(String materializeTestCaseName) {
        ...
    }

This is not enough. I want the following signature:

    public KatalonChronosDiff(String materializeTestCaseName, Environment environment) {
        ...
    }

Why?

I want to be able to perform the Chronos mode for both of

v0.9.6 does not allow parameterizing the environment, therefore https://github.com/kazurayam/inspectus4katalon-sample-project/blob/0.4.5/Scripts/CURA/materialize/Script1667709728945.groovy has inline declartion of the ExecutionProfile name:

...
/**
 * Test Cases/main/CURA/materialize
 */
String profile = "CURA_DevelopmentEnv"
ExecutionProfilesLoader profilesLoader = new ExecutionProfilesLoader()
profilesLoader.loadProfile(profile)
...

which is bad.