katalonVersion = 220.127.116.11
e.g. I have created two test cases which have own profiles like default and custom
then created Test Suite were these test cases are imported.
After that created Test Suite Collection and imported there TestSuite were are testcases which have different profiles
In Test Suite run profile files are executed as they are defined.
In Test Suite Collection there is default profile in place and execution uses only this one
is this featute coming to fix in next releases or should we live with this?
If you intend to run two Test Cases with different profiles, you would need to create two Test Suites with one Test Case each, then your Test Suite Collection would contain these two Test Suites, and from there you can run them with separate profiles.
What you’re really asking for (I think) is the ability to specify profiles for individual Test Cases within a Test Suite. As far as I know, there are no plans for this. But if it’s a feature you want, you should post a suggestion here:
thanks for quick answer.
yes my goal is to run several test cases in one Test Suite with different profile files and then import it to the Test Suite Collection as I have done, pic’s in my previously post.
That’s why cause in non gui execution (Jenkins) I will generate only one test report, if there are multiple Test Suites in Test Test Suite Collection will generated multiple test reports too.
now done like this way in Jenkins
katalon -noSplash -runMode=console -projectPath=“C:\KatalonStudio\DataDrivenTestMaster\Data Driven.prj” -retry=0 -testSuiteCollectionPath=“Test Suites/RegressionTestSuiteCollection” -browserType=“Chrome (headless)”
del /q “C:\Program Files (x86)\Jenkins\workspace\TestSuiteCollection\Reports*”
FOR /D %%p IN (“C:\Program Files (x86)\Jenkins\workspace\TestSuiteCollection\Reports*.*”) DO rmdir “%%p” /s /q
FOR /F “delims=” %%i IN (‘dir “C:\KatalonStudio\DataDrivenTestMaster\Reports\RegressionTestSuite” /b /ad-h /t:c /o-d’) DO (
echo No subfolder found
echo Most recent subfolder: %a%
robocopy C:\KatalonStudio\DataDrivenTestMaster\Reports\RegressionTestSuite%a% “C:\Program Files (x86)\Jenkins\workspace\TestSuiteCollection\Reports” /E /COPYALL /V /NP /R:0
if ERRORLEVEL 1 set ERRORLEVEL=0
Sure, then you will just have to copy multiple report folders/JUnit_Report.xml files back to the Jenkins workspace. And, assuming you’re using the JUnit plugin (https://wiki.jenkins.io/display/JENKINS/JUnit+Plugin), you would just list a set files that you want the plugin to grab, instead of a single file.
I agree with you that it’s unnecessarily inconvenient, but it’s certainly doable without too much elbow grease. Again, if it’s a feature you really want, post it to the new features/improvements forum to get it in front of the devs.
Hey @Timo_Kuisma , yeah I’ve been wanting the same feature.
Here’s a suggestion I created feel free to comment on it. Generic test suite for multiple profiles