12-14-2012, 08:22 PM
Sorry for the duplication - was originally created in General area:
Dear all,
i will like an assistance on how to get around this problem:
1. I created a new Characteristic "QTWTEST2"
2. I added a Char value "QTW002"(can add more than one value) under the header
3. Some characteristis have more that one Char value in my data table
4. How can i let qtp recognise the single/multiple Char. values from the data table.
I am attaching the composition of my data table and qtp codes
I will be glad of any input.
Character name Char. Value Description
1 QTPXTEST1 QTX001 TEST1
2 QTWTEST2 QTW002 TEST2
3 QTWTEST2 QTW003 TEST3
4 QTPBRUN1 QTB001 RUN1
5 QTPBRUN1 QTB002 RUN2
6 QTPBRUN1 QTB003 RUN3
Line 1 - 1 char. value
Line 2/3 - 2 char value
Line 4,5,6 - 3 char value
Dear all,
i will like an assistance on how to get around this problem:
1. I created a new Characteristic "QTWTEST2"
2. I added a Char value "QTW002"(can add more than one value) under the header
3. Some characteristis have more that one Char value in my data table
4. How can i let qtp recognise the single/multiple Char. values from the data table.
I am attaching the composition of my data table and qtp codes
I will be glad of any input.
Code:
SAPGuiSession("Session").SAPGuiWindow("Characteristics").SAPGuiEdit("Characteristic").Set "QTWTEST2"
SAPGuiSession("Session").SAPGuiWindow("Characteristics").SAPGuiButton("Create").Click
SAPGuiSession("Session").SAPGuiWindow("Characteristics").SAPGuiEdit("Description").Set "QTP characteristics test2"
SAPGuiSession("Session").SAPGuiWindow("Characteristics").SAPGuiComboBox("Data Type").SetFocus
SAPGuiSession("Session").SAPGuiWindow("Characteristics").SAPGuiComboBox("Data Type").Select "Character Format"
SAPGuiSession("Session").SAPGuiWindow("Characteristics").SAPGuiEdit("Number of Chars").Set "6"
SAPGuiSession("Session").SAPGuiWindow("Characteristics").SAPGuiTabStrip("TABSTRIP1").Select "Descriptions"
SAPGuiSession("Session").SAPGuiWindow("Characteristics").SAPGuiTabStrip("TABSTRIP1").Select "Values"
SAPGuiSession("Session").SAPGuiWindow("Characteristics").SAPGuiTable("Allowed Values").SetCellData 1,"Char. Value","QTW002"
SAPGuiSession("Session").SAPGuiWindow("Characteristics").SAPGuiTable("Allowed Values").SetCellData 1,"Description","TEST2"
SAPGuiSession("Session").SAPGuiWindow("Characteristics").SAPGuiTable("Allowed Values").SelectCell 1,"Description"
Character name Char. Value Description
1 QTPXTEST1 QTX001 TEST1
2 QTWTEST2 QTW002 TEST2
3 QTWTEST2 QTW003 TEST3
4 QTPBRUN1 QTB001 RUN1
5 QTPBRUN1 QTB002 RUN2
6 QTPBRUN1 QTB003 RUN3
Line 1 - 1 char. value
Line 2/3 - 2 char value
Line 4,5,6 - 3 char value