Skip to content

Commit 2a410ec

Browse files
committed
added command paramerer assistance
1 parent 30c6a2d commit 2a410ec

4 files changed

Lines changed: 348 additions & 172 deletions

File tree

core/commands.py

Lines changed: 173 additions & 170 deletions
Original file line numberDiff line numberDiff line change
@@ -1,171 +1,174 @@
1-
# commands.py - SIMPLIFIED VERSION
2-
COMMANDS = {
3-
"StartAppWithLogin",
4-
"StartScenario",
5-
"EndScenario",
6-
"StopApp",
7-
"FWC_SetTextBox",
8-
"FWC_VerifyTextBoxExist",
9-
"FWC_VerifyTextBoxNotExist",
10-
"FWC_VerifyTextBoxVisibleInTime",
11-
"FWC_ScrollViewElementTextBox",
12-
"FWC_GenerateRandomAlphaNumeric",
13-
"FWC_VerifyZeroNotPresent",
14-
"FWC_SetDropdown",
15-
"FWC_VerifySelectedDropdownValue",
16-
"FWC_VerifyDropdownExist",
17-
"FWC_VerifyDropdownVisibleInTime",
18-
"FWC_MouseOverDropdown",
19-
"FWC_ClickButton",
20-
"FWC_VerifyButtonExist",
21-
"FWC_VerifyButtonNotExist",
22-
"FWC_VerifyButtonVisibleInTime",
23-
"FWC_VerifyButtonClickableInTime",
24-
"FWC_DoubleClickOnButton",
25-
"FWC_ClickLink",
26-
"FWC_VerifyLinkExist",
27-
"FWC_VerifyLinkVisibleInTime",
28-
"FWC_MouseOverLink",
29-
"FWC_VerifyLinkNotExist",
30-
"FWC_SetCheckBox",
31-
"FWC_VerifyCheckBoxExist",
32-
"FWC_VerifyCheckBoxStatus",
33-
"FWC_VerifyCheckBoxVisibleInTime",
34-
"FWC_VerifyCheckBoxNotExist",
35-
"FWC_SetRadioButton",
36-
"FWC_VerifyRadioButtonExist",
37-
"FWC_VerifyRadioButtonVisibleInTime",
38-
"FWC_SelectToggleButton",
39-
"FWC_VerifyToggleButtonExist",
40-
"FWC_VerifyToggleButtonNotExist",
41-
"FWC_VerifyText",
42-
"FWC_VerifyTextNotPresent",
43-
"FWC_VerifyMultipleText",
44-
"FWC_DragDropElementRectangle",
45-
"FWC_ClickCell",
46-
"FWC_SelectWindow",
47-
"FWC_PageRefresh",
48-
"FWC_VerifyPageTitle",
49-
"FWC_OpenURL",
50-
"FWC_OpenNewTab",
51-
"FWC_SwitchToTab",
52-
"FWC_CloseTab",
53-
"FWC_VerifyLabelExist",
54-
"FWC_WaitForSecond",
55-
"FWC_RightClickOnCell",
56-
"FWC_DoubleClickOnCell",
57-
"FWC_RightClickOnCircle",
58-
"FWC_VerifyNegativeNumber",
59-
"FWC_VerifyPositiveNumber",
60-
"FWC_ScrollRight",
61-
"FWC_ScrollDown",
62-
"FWC_ScrollUp",
63-
"FWC_RightClickOnLabel",
64-
"FWC_PressEnter",
65-
"FWC_ScrollLeft",
66-
"FWC_DoubleClickOnCircle",
67-
"FWC_AcceptAlert",
68-
"FWC_CancelAlert",
69-
"FWC_DragDropElement",
70-
"FWC_VerifyLabelVisibleInTime",
71-
"FWC_VerifyNeutralNumber",
72-
"FWC_MultiActionsInput",
73-
"FWC_CloseAllWidgets",
74-
"FWC_VerifyBidGreenColor",
75-
"FWC_ResizeWidget",
76-
"FWC_ScrollViewElement",
77-
"FWC_CheckTitleAttribute",
78-
"FWC_VerifyLabelNotExist",
79-
"FWC_DragDropCellElement",
80-
"FWC_SelectFrame",
81-
"FWC_UnSelectFrame",
82-
"FWC_VerifyNonNegativeNumber",
83-
"FWC_VerifyNumberExist",
84-
"FWC_MouseOverCircle",
85-
"FWC_WaitForElementClickable",
86-
"FWC_VerifyButtonText",
87-
"FWC_GetElementText",
88-
"FWC_VerifyBulkData",
89-
"FWC_SettlePricingScreen",
90-
"FWC_WaitForElementToBeInteractable",
91-
"FWC_MouseOverButton",
92-
"EC_SetTextBoxRandomText",
93-
"EC_SetTextBoxAndTab",
94-
"EC_SetTextBox",
95-
"EC_VerifyTextBoxValue",
96-
"EC_VerifyTextBoxPlaceholder",
97-
"EC_CalculateDateFromToday",
98-
"EC_SetEventTime",
99-
"EC_SetPrimusTextBoxAndTab",
100-
"EC_SetDropdownAndEnter",
101-
"EC_SelectDropdown",
102-
"EC_VerifyDropdownValue",
103-
"EC_SelectbyIndexvalue",
104-
"EC_VerifyDropdownValueNotExist",
105-
"EC_VerifyToggleButtonValue",
106-
"EC_VerifyToggleButtonAbsent",
107-
"EC_VerifyCellData",
108-
"EC_VerifyCellValue",
109-
"EC_VerifyCellContainsValue",
110-
"EC_VerifyCellcolor",
111-
"EC_ExtractMidRRBFTable",
112-
"EC_ExtractBidOfferRRBFTable",
113-
"EC_EnterValuesInCorrGrid",
114-
"EC_CalculateValuesInCorrGrid",
115-
"EC_Login",
116-
"EC_EnterOTPText",
117-
"EC_OverrideSpot",
118-
"EC_OverrideForward",
119-
"EC_TakeScreenShot",
120-
"EC_SetDeltaHedge",
121-
"EC_SetPremium",
122-
"EC_QuoteIdVerification",
123-
"EC_VerifyTradeConfirmation",
124-
"EC_VerifyQuoteRequest",
125-
"EC_StoreRequestValue",
126-
"EC_SelectLiquidityProvider",
127-
"EC_QuoteIdInQuoteBlotters",
128-
"EC_QuoteIdInPtt",
129-
"EC_TradeIdComparison",
130-
"EC_VerifyAbsolutePremium",
131-
"EC_VerifyNegativeAbsolutePremium",
132-
"EC_VerifyRedColor",
133-
"EC_VerifySolverAbosultePremium",
134-
"EC_LeiCodeVerifyinBlotters",
135-
"EC_VerifyAbsPremInConfirmation",
136-
"EC_StpReportVerify",
137-
"EC_ReinitializeClick",
138-
"EC_CompareMidValues",
139-
"EC_CompareSpreadValues",
140-
"EC_ExtractSpreadValues",
141-
"EC_ExtractSkewValues",
142-
"EC_ConfigurationMode",
143-
"EC_VerifyCompositeValues",
144-
"EC_EnterValuesInSkew",
145-
"EC_EnterValuesInSpread",
146-
"EC_CalculateBidAndOffer",
147-
"EC_SpotGridTicking",
148-
"EC_VerifyStrategyIdInTradeAnalytics",
149-
"EC_VerifyDataVolCurveChangeGrid",
150-
"EC_VerifyHedgeRateColor",
151-
"EC_VerifyCentryProcessesColor",
152-
"EC_TradeConfirmationReportVerify",
153-
"EC_DateVerification",
154-
"EC_CompareDerivedToAggregate",
155-
"EC_CheckButtonNotClickable",
156-
"EC_CompareBidOfferPrices",
157-
"EC_HandlePopups",
158-
"EC_SetInvalidValuesInDropdown",
159-
"EC_SetVolTextBox",
160-
"EC_ResetBidOfferVerification",
161-
"EC_ComapareToolTipPremium",
162-
"EC_SetInvalidValuesInTextBox",
163-
"EC_VerifyLabelsMatch",
164-
"EC_VerifyAbsolutePremiumTradeConfo",
165-
"EC_SelectDate",
166-
"EC_VerifyCallPutData",
167-
"EC_VerifyForwardGridData",
168-
"EC_LastLoginVerification",
169-
"EC_DeleteExistingPage",
170-
"EC_ValidateDailyVolWeighted",
1+
# Test-Editor/core/commands.py
2+
# NOTE: This file is manually generated.
3+
4+
COMMAND_ARGS = {
5+
"StartAppWithLogin": ["username", "password", "secretKey"],
6+
"StartScenario": [],
7+
"EndScenario": [],
8+
"StopApp": [],
9+
# FWC Commands
10+
"FWC_VerifyText": ["text"],
11+
"FWC_ClickLink": ["link"],
12+
"FWC_DragDropElementRectangle": ["currentLocation", "targetLocation"],
13+
"FWC_VerifyTextNotPresent": ["text"],
14+
"FWC_ClickCell": ["cell"],
15+
"FWC_SetTextBox": ["textBox", "text"],
16+
"FWC_SelectWindow": ["window"],
17+
"FWC_SetRadioButton": ["radioButton"],
18+
"FWC_SetCheckBox": ["checkBox", "checkUncheck"],
19+
"FWC_SetDropdown": ["dropdown", "dropdownValue"],
20+
"FWC_PageRefresh": [],
21+
"FWC_VerifySelectedDropdownValue": ["dropdown", "dropdownValue"],
22+
"FWC_VerifyPageTitle": ["title"],
23+
"FWC_ClickButton": ["button"],
24+
"FWC_SelectToggleButton": ["toggleButton", "text"],
25+
"FWC_OpenURL": ["URL"],
26+
"FWC_OpenNewTab": ["url", "tabIndex"],
27+
"FWC_SwitchToTab": ["tabIndex"],
28+
"FWC_CloseTab": ["tabIndex"],
29+
"FWC_VerifyButtonExist": ["button"],
30+
"FWC_VerifyTextBoxExist": ["textBox"],
31+
"FWC_VerifyTextBoxNotExist": ["textBox"],
32+
"FWC_VerifyDropdownExist": ["dropdown"],
33+
"FWC_VerifyCheckBoxExist": ["checkBox"],
34+
"FWC_VerifyLinkExist": ["link"],
35+
"FWC_VerifyLabelExist": ["label"],
36+
"FWC_VerifyRadioButtonExist": ["radioButton"],
37+
"FWC_VerifyMultipleText": ["data"],
38+
"FWC_MouseOverLink": ["link"],
39+
"FWC_WaitForSecond": ["second"],
40+
"FWC_VerifyToggleButtonExist": ["toggleButton"],
41+
"FWC_RightClickOnCell": ["cell"],
42+
"FWC_DoubleClickOnCell": ["cell"],
43+
"FWC_RightClickOnCircle": ["circle"],
44+
"FWC_VerifyNegativeNumber": ["cell"],
45+
"FWC_VerifyPositiveNumber": ["cell"],
46+
"FWC_ScrollRight": [],
47+
"FWC_ScrollDown": [],
48+
"FWC_ScrollUp": [],
49+
"FWC_RightClickOnLabel": ["label"],
50+
"FWC_PressEnterKey": [],
51+
"FWC_ScrollLeft": [],
52+
"FWC_DoubleClickOnCircle": ["circle"],
53+
"FWC_AcceptAlert": [],
54+
"FWC_CancelAlert": [],
55+
"FWC_VerifyCheckBoxStatus": ["checkBox", "expectedStatus"],
56+
"FWC_VerifyButtonVisibleInTime": ["button"],
57+
"FWC_VerifyButtonClickableInTime": ["button"],
58+
"FWC_VerifyTextBoxVisibleInTime": ["textBox"],
59+
"FWC_VerifyDropdownVisibleInTime": ["dropdown"],
60+
"FWC_DragDropElement": ["dragLocation", "dropLocation"],
61+
"FWC_VerifyCheckBoxVisibleInTime": ["checkBox"],
62+
"FWC_VerifyLinkVisibleInTime": ["link"],
63+
"FWC_VerifyLabelVisibleInTime": ["label"],
64+
"FWC_VerifyZeroNotPresent": ["textBox"],
65+
"FWC_VerifyNeutralNumber": ["cell"],
66+
"FWC_VerifyRadioButtonVisibleInTime": ["radioButton"],
67+
"FWC_MultiActionsInput": ["elementNames", "elementValues"],
68+
"FWC_CloseAllWidgets": ["buttons"],
69+
"FWC_VerifyBidGreenColor": ["cell"],
70+
"FWC_VerifyButtonNotExist": ["button"],
71+
"FWC_ResizeWidget": [],
72+
"FWC_ScrollViewElement": ["button"],
73+
"FWC_CheckTitleAttribute": ["textBox"],
74+
"FWC_VerifyLabelNotExist": ["label"],
75+
"FWC_DragDropCellElement": ["dragLocation", "dropLocation"],
76+
"FWC_GenerateRandomAlphaNumeric": ["textBox"],
77+
"FWC_SelectFrame": ["frame"],
78+
"FWC_UnSelectFrame": [],
79+
"FWC_VerifyNonNegativeNumber": ["cell"],
80+
"FWC_ScrollViewElementTextBox": ["textBox"],
81+
"FWC_DoubleClickOnButton": ["button"],
82+
"FWC_VerifyToggleButtonNotExist": ["toggleButton"],
83+
"FWC_VerifyNumberExist": ["cell"],
84+
"FWC_MouseOverCircle": ["circle"],
85+
"FWC_MouseOverDropdown": ["dropdown"],
86+
"FWC_VerifyLinkNotExist": ["link"],
87+
"FWC_VerifyCheckBoxNotExist": ["checkBox"],
88+
"FWC_WaitForElementClickable": [],
89+
"FWC_MouseOverButton": ["button"],
90+
91+
# EC Commands
92+
"EC_SetTextBoxRandomText": ["textBox", "appendTo", "length"],
93+
"EC_Login": ["username", "password", "secretKey"],
94+
"EC_EnterOTPText": ["otp_textbox", "otp_source"],
95+
"EC_SetDropdownAndEnter": ["dropdown", "dropdownValue"],
96+
"EC_SetTextBoxAndTab": ["textBox", "text"],
97+
"EC_SetTextBox": ["textBox", "text"],
98+
"EC_SelectDropdown": ["dropdown", "dropdownValue"],
99+
"EC_VerifyDropdownValue": ["dropdown", "dropdownValue"],
100+
"EC_VerifyToggleButtonValue": ["toggleButton", "toggleValue"],
101+
"EC_VerifyTextBoxValue": ["textBox", "textBoxValue"],
102+
"EC_VerifyCellData": ["cell", "cellValue"],
103+
"EC_VerifyCellValue": ["cell", "cellValue"],
104+
"EC_VerifyCellcolor": ["cell", "cellcolor"],
105+
"EC_OverrideSpot": ["text"],
106+
"EC_OverrideForward": ["text"],
107+
"EC_TakeScreenShot": [],
108+
"EC_SelectbyIndexvalue": ["index"],
109+
"EC_SetDeltaHedge": ["dropdownValue"],
110+
"EC_SetPremium": ["dropdownValue1", "dropdownValue2"],
111+
"EC_QuoteIdVerification": ["textBox", "cell"],
112+
"EC_VerifyTradeConfirmation": ["strategy", "verificationPoints"],
113+
"EC_VerifyQuoteRequest": ["strategy", "verificationPoints"],
114+
"EC_StoreRequestValue": ["strategy"],
115+
"EC_SelectLiquidityProvider": ["liquidityProvider"],
116+
"EC_QuoteIdInQuoteBlotters": ["textBox", "cell"],
117+
"EC_QuoteIdInPtt": ["textBox", "cell"],
118+
"EC_VerifyDropdownValueNotExist": ["dropdown", "dropdownValue"],
119+
"EC_TradeIdComparison": ["button1", "label", "button2"],
120+
"EC_VerifyAbsolutePremium": ["label", "textBox"],
121+
"EC_VerifyNegativeAbsolutePremium": ["label", "textBox"],
122+
"EC_VerifyRedColor": ["textBox"],
123+
"EC_VerifySolverAbosultePremium": ["textBox", "text"],
124+
"EC_LeiCodeVerifyinBlotters": ["textBox", "button", "cell"],
125+
"EC_VerifyAbsPremInConfirmation": ["textBox1", "button", "textBox2"],
126+
"EC_StpReportVerify": ["textBox", "button1", "button2", "cell"],
127+
"EC_ReinitializeClick": [],
128+
"EC_VerifyToggleButtonAbsent": ["toggleButton", "toggleValue"],
129+
"EC_CalculateDateFromToday": ["textbox", "period"],
130+
"EC_SetEventTime": ["textBox", "text"],
131+
"EC_CompareMidValues": ["cellIndexes1", "dropdown", "dropdownValue", "cellIndexes2"],
132+
"EC_CompareSpreadValues": ["cellIndexes1", "dropdown", "dropdownValue", "cellIndexes2", "parentId"],
133+
"EC_ExtractSpreadValues": ["cellIndexes", "parentId"],
134+
"EC_ExtractSkewValues": ["cellIndexes", "parentId"],
135+
"EC_ConfigurationMode": ["dropdown", "dropdownValue"],
136+
"EC_SetPrimusTextBoxAndTab": ["button", "parentId", "cellIndexes", "cellValues", "shouldCompare"],
137+
"EC_VerifyCompositeValues": ["controlData", "cellIndexes", "cellIndexes2", "weights", "sources"],
138+
"EC_EnterValuesInSkew": ["button", "parentId", "cellIndexes"],
139+
"EC_EnterValuesInSpread": ["button", "parentId", "cellIndexes"],
140+
"EC_ExtractMidRRBFTable": ["cellIndexes"],
141+
"EC_ExtractBidOfferRRBFTable": ["cellIndexes"],
142+
"EC_CalculateBidAndOffer": ["cellIndexes1", "cellIndexes2", "parentId", "toggleButton", "text"],
143+
"EC_SpotGridTicking": [],
144+
"EC_VerifyStrategyIdInTradeAnalytics": ["textBox", "button", "cell"],
145+
"EC_VerifyDataVolCurveChangeGrid": [],
146+
"EC_VerifyHedgeRateColor": ["textBox", "env"],
147+
"EC_VerifyCentryProcessesColor": ["Cell"],
148+
"EC_TradeConfirmationReportVerify": ["textBox", "button1", "button2", "cell"],
149+
"EC_DateVerification": ["textBox"],
150+
"EC_CompareDerivedToAggregate": ["cellIndexes1", "cellIndexes2", "strategy"],
151+
"EC_EnterValuesInCorrGrid": ["button", "strategy", "cellIndexes"],
152+
"EC_CalculateValuesInCorrGrid": ["strategy", "configuration", "cellIndexes"],
153+
"EC_CheckButtonNotClickable": ["button"],
154+
"EC_CompareBidOfferPrices": ["label1", "label2", "label3", "label4"],
155+
"EC_SetInvalidValuesInDropdown": ["dropdown", "dropdownValue"],
156+
"EC_SetVolTextBox": ["textBox", "text"],
157+
"EC_ResetBidOfferVerification": ["cellIndexes", "expectedBidValues"],
158+
"EC_ComapareToolTipPremium": ["labelsParam"],
159+
"EC_SetInvalidValuesInTextBox": ["textBox", "text"],
160+
"EC_VerifyLabelsMatch": ["label1", "button1", "button2", "label2"],
161+
"EC_VerifyAbsolutePremiumTradeConfo": ["button1", "label1", "button2", "label2"],
162+
"EC_SelectDate": [],
163+
"EC_VerifyCellContainsValue": ["cell", "cellValue"],
164+
"EC_VerifyTextBoxPlaceholder": ["textBox", "placeholderValue"],
165+
"EC_VerifyCallPutData": ["button"],
166+
"EC_VerifyForwardGridData": ["tenorParam"],
167+
"EC_LastLoginVerification": ["textBox"],
168+
"EC_DeleteExistingPage": ["label", "button1", "button2"],
169+
"EC_ValidateDailyVolWeighted": ["params"],
170+
"EC_HandlePopups": ["actionButton", "waitSeconds"],
171171
}
172+
173+
# For backward compatibility, create the set of command names from the dictionary keys.
174+
COMMANDS = set(COMMAND_ARGS.keys())

0 commit comments

Comments
 (0)