Forum Discussion

kbw's avatar
kbw
Contributor
10 years ago

Defect: Hitting Delete when a DataSource step property is selected deletes the parent test case

When you are working in a DataSource test step, and you've highlighted a property in its property pane, hitting the [Delete] key on your keyboard SHOULD delete the property.  However, instead it deletes the parent test case that you are working in.

 

Compare to hitting [F2] instead in the same flow--that triggers a rename for the selected property, as expected.

 

Steps to reproduce:

1. Create a test case that has a DataSource test step

2. Create a couple properties in the DataSource test step

3. Click on one of your properties

4. Hit [Delete] on your keyboard

 

Expected:

You are prompted on whether you want to delete the selected property

 

Actual:

You are prompted on whether you want to delete the entire test case that you are currently working in (even though the test case itself isn't even highlighted in the navigation pane--the DataSource Test Step is highlighted).

 

If you click Yes on this overly, the test case will be deleted, and you need to reload your project, without saving, to get it back--possibly losing a lot of other work if you hadn't saved recently.

    • kbw's avatar
      kbw
      Contributor

      It still happens in that nightly build.


      One more piece of info:  It's not only the DataSource step.  This also happens on the Property Transfer step.  I suspect if there are any other step that have the same type of property pane, that it'll happen for those as well.