Mostrando postagens com marcador column. Mostrar todas as postagens
Mostrando postagens com marcador column. Mostrar todas as postagens

sexta-feira, 18 de janeiro de 2013

[BUG] Columns in the datatable with the same name


Well, according to one of the QTP premises, you cannot include two columns with the same name in the DataTable. Make sense since you can't have two parameters with the same name. But I've found a crack in this wall.

Start a new test. Rename the column A to other name (say 'test'). Click the column 'test' to select it, right click and select Edit --> Insert. QTP will insert a column named 'A', Right click the column 'A', Edit --> Insert and you will get ANOTHER column 'A'.


Just out my curiosity, debugging what happens when asking for column 'A', QTP returns the value from the first column found.

segunda-feira, 3 de setembro de 2012

[BUG] QTP 10 to 11 migration issues

Yeah folks... moving from QTP 10..0 to 11.0 is not as smooth and seamless as it's supposed to (well, at least HP didn't alarmed it would be).

We have to "test the testing tool" (which answers back my first post - yes, the answer is "us, the users") and make sure that, at least, the basic functionalities we had in the past are still in place (yes, regression test applies for QTP too).

And we found a few features to be out of place. Obviously, unfortunately. After all, it's QTP for someone's sake.

The migration issue example for this post refers to the Datatable, which does not allows you to edit the column titles from QTP 10.0 tests. We opened our tests up, check them out from Quality Center, double clicked the column titles and... nothing happens! Frustrating.

- Why's that? - you ask.
- Who knows! It's QTP! - I answer back.

Workaround: very quick way to fix this is by exporting and re-importing the excel shit sheet into your test.


  1. Right click on the Datatable, choose File --> Export... and then Yes button.
  2. Save wherever you want in your PC, edit it if required (but don't mess it up!), save, close.
  3. Now, go back to QTP and right click the Datatable, choose File --> Import From File and choose the file you saved previously.
  4. Click OK on whatever message QTP shows you.
Done. The Datatable column names are editable again. Duh.