mirror of
https://github.com/IRPTeam/IRP.git
synced 2026-04-24 03:53:25 +02:00
416 lines
19 KiB
Gherkin
416 lines
19 KiB
Gherkin
#language: en
|
|
@tree
|
|
@Positive
|
|
|
|
@AdditionalAttributes
|
|
|
|
Feature: copy additional attribute value
|
|
|
|
|
|
|
|
Background:
|
|
Given I launch TestClient opening script or connect the existing one
|
|
|
|
|
|
|
|
|
|
Scenario: _207001 copy additional attribute values when create catalog element
|
|
When set True value to the constant
|
|
* Add additional attribute
|
|
* Additional attribute 01
|
|
Given I open hyperlink 'e1cib/list/ChartOfCharacteristicTypes.AddAttributeAndProperty'
|
|
And I click the button named "FormCreate"
|
|
And I click Choice button of the field named "ValueType"
|
|
And I go to line in "" table
|
|
| '' |
|
|
| 'Additional attribute value' |
|
|
And I click the button named "OK"
|
|
And I click Open button of the field named "Description_en"
|
|
And I input "Additional attribute 01" text in the field named "Description_en"
|
|
And I input "Additional attribute 01" text in the field named "Description_tr"
|
|
And I click "Ok" button
|
|
And I input "additionalAttribute01" text in "Unique ID" field
|
|
And I click the button named "FormWrite"
|
|
And In this window I click command interface button "Additional attribute values"
|
|
And I click the button named "FormCreate"
|
|
And I input "Value02" text in the field named "Description_en"
|
|
And I click "Save and close" button
|
|
And I click the button named "FormCreate"
|
|
And I input "Value01" text in the field named "Description_en"
|
|
And I click "Save and close" button
|
|
And I close current window
|
|
* Additional attribute 02
|
|
Given I open hyperlink 'e1cib/list/ChartOfCharacteristicTypes.AddAttributeAndProperty'
|
|
And I click the button named "FormCreate"
|
|
And I click Choice button of the field named "ValueType"
|
|
And I go to line in "" table
|
|
| '' |
|
|
| 'Additional attribute value' |
|
|
And I click the button named "OK"
|
|
And I click Open button of the field named "Description_en"
|
|
And I input "Additional attribute 02" text in the field named "Description_en"
|
|
And I input "Additional attribute 02" text in the field named "Description_tr"
|
|
And I click "Ok" button
|
|
And I input "additionalAttribute02" text in "Unique ID" field
|
|
And I click the button named "FormWrite"
|
|
And In this window I click command interface button "Additional attribute values"
|
|
And I click the button named "FormCreate"
|
|
And I input "Value02" text in the field named "Description_en"
|
|
And I click "Save and close" button
|
|
And I click the button named "FormCreate"
|
|
And I input "Value01" text in the field named "Description_en"
|
|
And I click "Save and close" button
|
|
And I close current window
|
|
* Additional attributes settings
|
|
* Opening the form for adding additional attributes for Partners
|
|
Given I open hyperlink "e1cib/list/Catalog.AddAttributeAndPropertySets"
|
|
And I go to line in "List" table
|
|
| 'Predefined data name' |
|
|
| 'Catalog_Partners' |
|
|
And I select current line in "List" table
|
|
If "Attributes" table contains lines Then
|
|
| 'Attribute' |
|
|
| 'Additional attribute 01' |
|
|
| 'Additional attribute 02' |
|
|
And in the table "Attributes" I click the button named "AttributesContextMenuDelete"
|
|
And in the table "Attributes" I click the button named "AttributesAdd"
|
|
And I click choice button of "Attribute" attribute in "Attributes" table
|
|
And I go to line in "List" table
|
|
| 'Description' |
|
|
| 'Additional attribute 02' |
|
|
And I select current line in "List" table
|
|
And in the table "Attributes" I click the button named "AttributesAdd"
|
|
And I click choice button of "Attribute" attribute in "Attributes" table
|
|
And I go to line in "List" table
|
|
| 'Description' |
|
|
| 'Additional attribute 01' |
|
|
And I select current line in "List" table
|
|
And I finish line editing in "Attributes" table
|
|
And I input "Partners" text in the field named "Description_en"
|
|
And I click "Save and close" button
|
|
* Load test partner
|
|
When Create catalog Partners objects (Partner 01)
|
|
* Filling in additional attributes for Partner 01
|
|
Given I open hyperlink "e1cib/list/Catalog.Partners"
|
|
And I go to line in "List" table
|
|
| 'Description' |
|
|
| 'Partner 01' |
|
|
And I select current line in "List" table
|
|
And I click Select button of "Additional attribute 02" field
|
|
And I go to line in "List" table
|
|
| 'Additional attribute' | 'Description' |
|
|
| 'Additional attribute 02' | 'Value01' |
|
|
And I select current line in "List" table
|
|
And I click "Save and close" button
|
|
* Copy partner and check filling in additional attributes
|
|
Given I open hyperlink "e1cib/list/Catalog.Partners"
|
|
And I go to line in "List" table
|
|
| 'Description' |
|
|
| 'Partner 01' |
|
|
And in the table "List" I click the button named "ListContextMenuCopy"
|
|
Then "Additional attribute 02" form attribute became equal to "Value01"
|
|
Then "Additional attribute 01" form attribute became equal to ""
|
|
Then the form attribute named "Description_en" became equal to "Partner 01"
|
|
And I input "Partner 01 (clone)" text in the field named "Description_en"
|
|
And I click "Save" button
|
|
Then "Additional attribute 02" form attribute became equal to "Value01"
|
|
Then the form attribute named "Description_en" became equal to "Partner 01 (clone)"
|
|
And I click "Save and close" button
|
|
* Filling in Additional attribute 01 in User settings for Partners
|
|
Given I open hyperlink "e1cib/list/InformationRegister.UserSettings"
|
|
And I click the button named "FormCreate"
|
|
And I click Select button of "User or group" field
|
|
And I select current line in "" table
|
|
And I go to line in "List" table
|
|
| 'Login' |
|
|
| 'CI' |
|
|
And I select current line in "List" table
|
|
And I input "Catalog.Partners" text in "Metadata object" field
|
|
And I input "additionalAttribute02" text in "Attribute name" field
|
|
And I select "Additional" exact value from "Kind of attribute" drop-down list
|
|
And I click Select button of "Value" field
|
|
And I go to line in "" table
|
|
| '' |
|
|
| 'Additional attribute value' |
|
|
And I select current line in "" table
|
|
And I go to line in "List" table
|
|
| 'Additional attribute' | 'Description' |
|
|
| 'Additional attribute 02' | 'Value01' |
|
|
And I activate "Description" field in "List" table
|
|
And I select current line in "List" table
|
|
And I click "Save and close" button
|
|
And I click the button named "FormCreate"
|
|
And I click Select button of "User or group" field
|
|
And I select current line in "" table
|
|
And I go to line in "List" table
|
|
| 'Login' |
|
|
| 'CI' |
|
|
And I select current line in "List" table
|
|
And I input "Catalog.Partners" text in "Metadata object" field
|
|
And I input "additionalAttribute01" text in "Attribute name" field
|
|
And I select "Additional" exact value from "Kind of attribute" drop-down list
|
|
And I click Select button of "Value" field
|
|
And I go to line in "" table
|
|
| '' |
|
|
| 'Additional attribute value' |
|
|
And I select current line in "" table
|
|
Then "Additional attribute values" window is opened
|
|
And I go to line in "List" table
|
|
| 'Additional attribute' | 'Description' |
|
|
| 'Additional attribute 01' | 'Value01' |
|
|
And I activate "Description" field in "List" table
|
|
And I select current line in "List" table
|
|
And I click "Save and close" button
|
|
* Check filling in additional attributes from user settings when clone partner
|
|
Given I open hyperlink "e1cib/list/Catalog.Partners"
|
|
And I go to line in "List" table
|
|
| 'Description' |
|
|
| 'Partner 01' |
|
|
And in the table "List" I click the button named "ListContextMenuCopy"
|
|
Then "Additional attribute 02" form attribute became equal to "Value01"
|
|
Then "Additional attribute 01" form attribute became equal to "Value01"
|
|
Then the form attribute named "Description_en" became equal to "Partner 01"
|
|
And I input "Partner 01 (clone2)" text in the field named "Description_en"
|
|
And I click "Save" button
|
|
Then "Additional attribute 02" form attribute became equal to "Value01"
|
|
Then "Additional attribute 01" form attribute became equal to "Value01"
|
|
Then the form attribute named "Description_en" became equal to "Partner 01 (clone2)"
|
|
And I click "Save and close" button
|
|
And I close all client application windows
|
|
* Add VA extension
|
|
Given I open hyperlink "e1cib/list/Catalog.Extensions"
|
|
If "List" table does not contain lines Then
|
|
| "Description" |
|
|
| "VAExtension" |
|
|
When add VAExtension
|
|
|
|
Scenario: _207002 copy additional attribute values when create document
|
|
And I close all client application windows
|
|
* Additional attributes settings
|
|
* Opening the form for adding additional attributes for BankReceipt
|
|
Given I open hyperlink "e1cib/list/Catalog.AddAttributeAndPropertySets"
|
|
And I go to line in "List" table
|
|
| 'Predefined data name' |
|
|
| 'Document_BankReceipt' |
|
|
And I select current line in "List" table
|
|
If "Attributes" table contains lines Then
|
|
| 'Attribute' |
|
|
| 'Additional attribute 02' |
|
|
| 'Additional attribute 01' |
|
|
And in the table "Attributes" I click the button named "AttributesContextMenuDelete"
|
|
And in the table "Attributes" I click the button named "AttributesAdd"
|
|
And I click choice button of "Attribute" attribute in "Attributes" table
|
|
And I go to line in "List" table
|
|
| 'Description' |
|
|
| 'Additional attribute 02' |
|
|
And I select current line in "List" table
|
|
And in the table "Attributes" I click the button named "AttributesAdd"
|
|
And I click choice button of "Attribute" attribute in "Attributes" table
|
|
And I go to line in "List" table
|
|
| 'Description' |
|
|
| 'Additional attribute 01' |
|
|
And I select current line in "List" table
|
|
And I finish line editing in "Attributes" table
|
|
And I input "Bank receipt" text in the field named "Description_en"
|
|
And I click "Save and close" button
|
|
And I execute the built-in language code (Extension)
|
|
| "RefreshReusableValues()" |
|
|
* Create test Bank receipt
|
|
Given I open hyperlink "e1cib/list/Document.BankReceipt"
|
|
And I click the button named "FormCreate"
|
|
And I click Select button of "Company" field
|
|
And I go to line in "List" table
|
|
| 'Description' |
|
|
| 'Main company' |
|
|
And I select current line in "List" table
|
|
And I click Select button of "Account" field
|
|
And I go to line in "List" table
|
|
| 'Currency' | 'Description' |
|
|
| 'USD' | 'Bank account, USD' |
|
|
And I select current line in "List" table
|
|
And I move to "Other" tab
|
|
And I click Select button of "Additional attribute 02" field
|
|
And I go to line in "List" table
|
|
| 'Additional attribute' | 'Description' |
|
|
| 'Additional attribute 02' | 'Value01' |
|
|
And I select current line in "List" table
|
|
And I click the button named "FormPost"
|
|
And I delete "$$NumberBankReceipt2070022$$" variable
|
|
And I save the value of "Number" field as "$$NumberBankReceipt2070022$$"
|
|
And I click the button named "FormPostAndClose"
|
|
* Copy Bank receipt and check filling in additional attributes
|
|
Given I open hyperlink "e1cib/list/Document.BankReceipt"
|
|
And I go to line in "List" table
|
|
| 'Number' |
|
|
| '$$NumberBankReceipt2070022$$' |
|
|
And in the table "List" I click the button named "ListContextMenuCopy"
|
|
Then "Additional attribute 02" form attribute became equal to "Value01"
|
|
Then "Additional attribute 01" form attribute became equal to ""
|
|
And I click the button named "FormPost"
|
|
Then "Additional attribute 02" form attribute became equal to "Value01"
|
|
And I delete "$$NumberBankReceipt2070023$$" variable
|
|
And I save the value of "Number" field as "$$NumberBankReceipt2070023$$"
|
|
And I click the button named "FormPostAndClose"
|
|
* Filling in Additional attribute 01 in User settings for Bank receipt
|
|
Given I open hyperlink "e1cib/list/InformationRegister.UserSettings"
|
|
And I click the button named "FormCreate"
|
|
And I click Select button of "User or group" field
|
|
And I select current line in "" table
|
|
And I go to line in "List" table
|
|
| 'Login' |
|
|
| 'CI' |
|
|
And I select current line in "List" table
|
|
And I input "Document.BankReceipt" text in "Metadata object" field
|
|
And I input "additionalAttribute02" text in "Attribute name" field
|
|
And I select "Additional" exact value from "Kind of attribute" drop-down list
|
|
And I click Select button of "Value" field
|
|
And I go to line in "" table
|
|
| '' |
|
|
| 'Additional attribute value' |
|
|
And I select current line in "" table
|
|
And I go to line in "List" table
|
|
| 'Additional attribute' | 'Description' |
|
|
| 'Additional attribute 02' | 'Value01' |
|
|
And I activate "Description" field in "List" table
|
|
And I select current line in "List" table
|
|
And I click "Save and close" button
|
|
And I click the button named "FormCreate"
|
|
And I click Select button of "User or group" field
|
|
And I select current line in "" table
|
|
And I go to line in "List" table
|
|
| 'Login' |
|
|
| 'CI' |
|
|
And I select current line in "List" table
|
|
And I input "Document.BankReceipt" text in "Metadata object" field
|
|
And I input "additionalAttribute01" text in "Attribute name" field
|
|
And I select "Additional" exact value from "Kind of attribute" drop-down list
|
|
And I click Select button of "Value" field
|
|
And I go to line in "" table
|
|
| '' |
|
|
| 'Additional attribute value' |
|
|
And I select current line in "" table
|
|
Then "Additional attribute values" window is opened
|
|
And I go to line in "List" table
|
|
| 'Additional attribute' | 'Description' |
|
|
| 'Additional attribute 01' | 'Value02' |
|
|
And I activate "Description" field in "List" table
|
|
And I select current line in "List" table
|
|
And I click "Save and close" button
|
|
And I execute the built-in language code (Extension)
|
|
| "RefreshReusableValues()" |
|
|
* Check filling in additional attributes from user settings when clone document
|
|
Given I open hyperlink "e1cib/list/Document.BankReceipt"
|
|
And I go to line in "List" table
|
|
| 'Number' |
|
|
| '$$NumberBankReceipt2070022$$' |
|
|
And in the table "List" I click the button named "ListContextMenuCopy"
|
|
Then "Additional attribute 02" form attribute became equal to "Value01"
|
|
Then "Additional attribute 01" form attribute became equal to "Value02"
|
|
And I click "Save" button
|
|
Then "Additional attribute 02" form attribute became equal to "Value01"
|
|
Then "Additional attribute 01" form attribute became equal to "Value02"
|
|
And I delete "$$NumberBankReceipt2070024$$" variable
|
|
And I save the value of "Number" field as "$$NumberBankReceipt2070024$$"
|
|
And I click the button named "FormPostAndClose"
|
|
* Mark created Bank receipt for deletion
|
|
Given I open hyperlink "e1cib/list/Document.BankReceipt"
|
|
And I go to line in "List" table
|
|
| 'Number' |
|
|
| '$$NumberBankReceipt2070022$$' |
|
|
And in the table "List" I click the button named "ListContextMenuSetDeletionMark"
|
|
Then "1C:Enterprise" window is opened
|
|
And I click "Yes" button
|
|
And I go to line in "List" table
|
|
| 'Number' |
|
|
| '$$NumberBankReceipt2070023$$' |
|
|
And in the table "List" I click the button named "ListContextMenuSetDeletionMark"
|
|
Then "1C:Enterprise" window is opened
|
|
And I click "Yes" button
|
|
And I go to line in "List" table
|
|
| 'Number' |
|
|
| '$$NumberBankReceipt2070024$$' |
|
|
And in the table "List" I click the button named "ListContextMenuSetDeletionMark"
|
|
Then "1C:Enterprise" window is opened
|
|
And I click "Yes" button
|
|
And I close all client application windows
|
|
|
|
|
|
Scenario: _207003 copy additional atribute row in sets (isConditionSet)
|
|
* Opening the form for adding additional attributes for Partners
|
|
Given I open hyperlink "e1cib/list/Catalog.AddAttributeAndPropertySets"
|
|
And I go to line in "List" table
|
|
| 'Predefined data name' |
|
|
| 'Catalog_Partners' |
|
|
And I select current line in "List" table
|
|
* Delete Additional attribute 01
|
|
And I go to line in "Attributes" table
|
|
| 'Attribute' |
|
|
| 'Additional attribute 01' |
|
|
And in the table "Attributes" I click the button named "AttributesContextMenuDelete"
|
|
* Add Condition for Additional attribute 02
|
|
And I go to line in "Attributes" table
|
|
| 'Attribute' |
|
|
| 'Additional attribute 02' |
|
|
And in the table "Attributes" I click the button named "AttributesSetCondition"
|
|
Then "1C:Enterprise" window is opened
|
|
And I click "Yes" button
|
|
And in the table "SettingsFilter" I click the button named "SettingsFilterAddFilterItem"
|
|
And I click choice button of the attribute named "SettingsFilterLeftValue" in "SettingsFilter" table
|
|
Then "Select field" window is opened
|
|
And I go to line in "Source" table
|
|
| 'Available fields' |
|
|
| 'Ref' |
|
|
And I expand current line in "Source" table
|
|
And I go to line in "Source" table
|
|
| 'Available fields' |
|
|
| 'ENG' |
|
|
And I select current line in "Source" table
|
|
And I move to the next attribute
|
|
And I select "Contains" exact value from "Comparison type" drop-down list in "SettingsFilter" table
|
|
And I move to the next attribute
|
|
And I input "clone" text in the field named "SettingsFilterRightValue" of "SettingsFilter" table
|
|
And I finish line editing in "SettingsFilter" table
|
|
And in the table "ResultTable" I click "Verify" button
|
|
And "ResultTable" table became equal
|
|
| 'Ref' |
|
|
| 'Partner 01 (clone)' |
|
|
| 'Partner 01 (clone2)' |
|
|
And I click "Ok" button
|
|
* Copy Additional attribute 02 and change attribute on Additional attribute 01
|
|
And in the table "Attributes" I click the button named "AttributesContextMenuCopy"
|
|
And I click choice button of "Attribute" attribute in "Attributes" table
|
|
Then "Additional attribute types" window is opened
|
|
And I go to line in "List" table
|
|
| 'Description' |
|
|
| 'Additional attribute 01' |
|
|
And I select current line in "List" table
|
|
And I finish line editing in "Attributes" table
|
|
* Check copy isConditionSet
|
|
And in the table "Attributes" I click the button named "AttributesSetCondition"
|
|
Then "1C:Enterprise" window is opened
|
|
And I click "Yes" button
|
|
Then "Edit condition" window is opened
|
|
And I expand current line in "SettingsFilter" table
|
|
And in the table "ResultTable" I click "Verify" button
|
|
And "ResultTable" table became equal
|
|
| 'Ref' |
|
|
| 'Partner 01 (clone)' |
|
|
| 'Partner 01 (clone2)' |
|
|
And I click "Ok" button
|
|
And I click "Save and close" button
|
|
* Check Condition
|
|
Given I open hyperlink "e1cib/list/Catalog.Partners"
|
|
And I go to line in "List" table
|
|
| 'Description' |
|
|
| 'Partner 01' |
|
|
And I select current line in "List" table
|
|
And field "Additional attribute 02" is not present on the form
|
|
And field "Additional attribute 01" is not present on the form
|
|
And I close current window
|
|
And I go to line in "List" table
|
|
| 'Description' |
|
|
| 'Partner 01 (clone)' |
|
|
And I select current line in "List" table
|
|
And field "Additional attribute 02" is present on the form
|
|
And field "Additional attribute 01" is present on the form
|
|
And I close all client application windows |