Katalon does not update the web service request variables when called the request again. It still shows the old variables list

Katalon Studio Version: 6.2.0

Steps

  1. Create a Post request with some variables in the variable tab
  2. Call this Post request in the test case
  3. Go back to the Post request and update some variables
  4. Call this Post request again in test case, it still shows the old variables under Map section
  5. User has to update the variables manually

Hi @Bhawna_Rani,
Can you provide your test script?

let me guess. you are an ex postman user?
well, welcome to automation. it may looks like katalon is a ‘click and go’ tool but is not.
is just a helper to introduce you to real programatical approach

Hi @huynguyen below is my test script

import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint
import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase
import static com.kms.katalon.core.testdata.TestDataFactory.findTestData
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
import com.fasterxml.jackson.core.PrettyPrinter as PrettyPrinter
import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint
import com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords as CucumberKW
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile
import com.kms.katalon.core.model.FailureHandling as FailureHandling
import com.kms.katalon.core.testcase.TestCase as TestCase
import com.kms.katalon.core.testdata.TestData as TestData
import com.kms.katalon.core.testobject.TestObject as TestObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
import internal.GlobalVariable as GlobalVariable
import groovy.json.JsonSlurper as JsonSlurper
import groovy.json.JsonOutput as JsonOutput

def jsonSlurper = new JsonSlurper()

def response = WS.sendRequest(findTestObject(‘Celayix_Test/Check_Login’, [(‘qaClientID’) : GlobalVariable.ClientID, (‘qa_txp_username’) : ‘empl1s’
, (‘qa_txp_password’) : ‘password’, (‘piClientVersion’) : ‘20190603001’]))

def json_Login_issue = jsonSlurper.parseText(response.getResponseText())

WS.verifyElementPropertyValue(response, ‘pcResult’, ‘OK’, FailureHandling.STOP_ON_FAILURE)

@huynguyen Note this behaviour happens occasionally, not all the times

You have provided in your test script the values of variables. Therefore, these values will take precedence over the ones you define in the variable tab

I closed this as it is inactive