Operating System macOS Mojave 10.14.2
Katalon Studio Version Version: 5.10.1 Build: 1
Environment (for Web testing) Google Chrome Version 71.0.3578.98 (Official Build) (64-bit)
Steps to reproduce
Steps :
- Create an execution profile and add a global variable in it.
- Create a new test case using that Global Variable you just created in step 1.
- Execute the test case using the execution profile you created in step 1.
- Now change the execution profile name.
- Re-execute the test case you created in Step 2.
Upon doing these steps you will get an error. I was thinking upon changing the name of execution profile it will also auto update my test cases using global variable in that execution profile.
The error says Global Variable is empty, But it’s not.
Expected Behavior
We should alert the user that they need to restart Katalon to make the test cases work again after renaming the Execution Profile.
Actual Behavior
I am seeing an error when I execute my test case again after renaming the execution profile.
Logs
01-23-2019 11:44:26 AM Test Cases/2_Prod/Main Menu Navigation/Underwear
Elapsed time: 3.856s
Test Cases/2_Prod/Main Menu Navigation/Underwear FAILED.
Reason:
com.kms.katalon.core.exception.StepFailedException: Unable to navigate to ‘null’ (Root cause: java.lang.IllegalArgumentException: Url cannot be null or empty)
at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy:36)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:65)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:27)
at com.kms.katalon.core.webui.keyword.builtin.NavigateToUrlKeyword.navigateToUrl(NavigateToUrlKeyword.groovy:83)
at com.kms.katalon.core.webui.keyword.builtin.NavigateToUrlKeyword.execute(NavigateToUrlKeyword.groovy:67)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:53)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.navigateToUrl(WebUiBuiltInKeywords.groovy:183)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$navigateToUrl$1.call(Unknown Source)
at Underwear.run(Underwear:20)
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:328)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:319)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:298)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:290)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:224)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:106)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:97)
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)
at TempTestCase1548272663994.run(TempTestCase1548272663994.groovy:22)