dsanderbi opened a new issue, #6357: URL: https://github.com/apache/hop/issues/6357
### Apache Hop version? 2.16 ### Java version? 17 ### Operating system Windows ### What happened? Unit test variables disappear when the input data set of a unit test is changed. ## Steps to reproduce: - Create a new unit test. - Create an input data set. - Save the test and run it – it works as expected. <img width="1562" height="462" alt="Image" src="https://github.com/user-attachments/assets/e22e8d46-b43a-4634-976f-8f4e64e3d85f" /> - Add a variable to the existing unit test, assign a value, and save. <img width="289" height="191" alt="Image" src="https://github.com/user-attachments/assets/3659dd0d-b504-42c0-a982-1d31712d8751" /> - Run the test again – it fails as expected because of the variable. <img width="1672" height="446" alt="Image" src="https://github.com/user-attachments/assets/c2c796fc-8e97-4153-a2b6-80d6e0f7b3c0" /> - Now modify the input data set using the gui <img width="1098" height="205" alt="Image" src="https://github.com/user-attachments/assets/27d7250c-8073-442a-af70-2ac2c525a60f" /> <img width="561" height="331" alt="Image" src="https://github.com/user-attachments/assets/4e677971-45f7-43db-a97d-82b7709fa921" /> - Change something like <img width="406" height="134" alt="Image" src="https://github.com/user-attachments/assets/e092893f-a92e-49f5-b885-ad9645229988" /> - Changed to <img width="409" height="145" alt="Image" src="https://github.com/user-attachments/assets/eae3a5a7-f924-4b77-97a4-e7f58ba8449e" /> - Save the unit test. - Run the unit test again. ### Expected result: The test should still fail because the variable is still defined. ### Actual result: The test now passes because the variable that was added is lost in the Variables section after saving the updated input data set. The before defined variable is missing! <img width="240" height="121" alt="Image" src="https://github.com/user-attachments/assets/3a695b2c-4fac-453d-bd26-eef8bc96d782" /> ### Issue Priority Priority: 2 ### Issue Component Component: Hop Gui, Component: Metadata, Component: Pipelines -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
