US-2-1 Apply settings to the locator
DONE
Description
As a user
I want to use different settings for different locators
So that allows spending less time on refactoring after generation
Dependencies
[out] US-2-2 xPath setting for generation
US-11-1 Interaction with an element on page settings of locator
US-11-2 Interaction with an element from locators list (Locator's action menu) settings of locator
Acceptance criteria
UC 2-1-1 User can edit settings from the locators' menu
GIVEN I am a user
AND The generation of a locator has started or completed
AND there are locators that are recognized on page
WHEN I open settings from the locators' menu and click on “Settings“
THEN I expect to see a window with xPath settings
AND Default or last saved settings are displayed
AND User can change settings
UC 2-1-2 User apply settings to the locator in the section “Waiting for generation“
GIVEN I am a user
AND I change settings of locator in the section “Waiting for generation“
WHEN I click on “Save“
THEN I expect to see a Notification
UC 2-1-3 User apply settings to the locator in section “Generated“
GIVEN I am a user
AND I change settings of the locator in the section “Generated”
WHEN I click on “Save and regenerate“
THEN I expect to see a Notification
AND locator will be moved to section “Waiting for generation“
AND progress bar will be started
UC 2-1-4 User apply settings to several locators using menu
GIVEN I am a user
AND I selected several locators
AND I change settings of selected locators
WHEN I open settings from the locators' menu and click on “Settings“
THEN I expect to see a window with xPath settings
AND Default or last saved settings are displayed
AND User can change settings
UC 2-1-5 User apply settings from page's context menu of locator
GIVEN I click Right Mouse Button on recognized locator on page
AND I change settings of selected locators
WHEN I open settings from the locators' menu and click on “Settings“
THEN I expect to see a window with xPath settings
AND Default or last saved settings are displayed
AND User can change settings
UC 2-1-6 User apply settings to the locator in sections: “Waiting for generation“ and “Generated”
GIVEN I change settings of the locator in the section “Generated”
WHEN I click on “Save and regenerate“
THEN generated locator will be moved to section “Waiting for generation“
AND all locators will be regenerated
AND progress bar will be started
UC 2-1-7 Advanced calculation
GIVEN I’m not satisfied with the locator’s generation result
WHEN I change the time spend on locator’s generation
THEN the locator should be more optimal
Related artefacts
Comments
Settings can be implemented from the page and from locators list
При выводе окна на странице, форму плагина покрывать некликабельным фоном (полупрозрачным черным), пока окно открыто.
Design
xPath settings
Allow indexes at the beginning;
Allow indexes at the middle;
Allow indexes at the end;
Limit the generation time of one locator.