mirror of
https://github.com/IRPTeam/IRP.git
synced 2026-04-24 03:53:25 +02:00
6f2843eda8
* Refactor default data logic to new DefaultDataServer module Introduced the DefaultDataServer common module to encapsulate logic for default data retrieval and creation, moving related methods from FOServer. Updated references in catalogs, partners, user settings, and functional option settings to use DefaultDataServer. Added new form and module for functional option settings, and extended localization for functional option groups. Registered the new module in the configuration. * #IRP-722 - add new FO handler, block editing FO without handler * Enhance functional options Moved the Taxes subsystem from Settings to MasterData, updating all related references and file locations. Enhanced the FunctionalOptionSettings form by adding 'Save and Close', 'Check All', and 'Uncheck All' buttons with corresponding handlers. Cleaned up functional option and subsystem content assignments, and improved error handling in FOServer module for functional option value retrieval. * #IRP-723 Refactor default data update logic Refactored the UpdateDefaultsAtTransaction procedure in DefaultDataServer module by splitting logic into modular procedures for updating default catalog values. Added a new 'Update defaults' button and command to the FunctionalOptionSettings NewForm, with corresponding client and server handlers to trigger the update. Improved code maintainability and enabled users to update default values directly from the form. * #IRP-721 new subordinations * Refactor and split order/cash constants and options Renamed and split 'UseOrders' into 'UsePurchaseOrders' and 'UseSalesOrders', 'UseCashTransaction' into 'UseCashTransactions', and introduced 'UsePaymentOrders' and related constants, functional options, and rights. Updated all references, forms, modules, and configuration files to use the new names and structure, improving clarity and separation of purchase, sales, and payment order logic. * fix features * Refactor functional options and update related content Reorganized and cleaned up functional options in configuration and module files, removing redundant and outdated content references. Added new report links to planned receipt reservation, purchase orders, and sales orders options. Adjusted subordination arrays and groupings in FOServer, and updated form attributes for agreements. These changes improve modularity and maintainability of functional options. * Add and update report references in functional options Added new report references to multiple functional option .mdo files to enhance reporting capabilities across modules such as Aging, Finance, Landed Cost, Purchase, Retail, Sales, and Stores. Also updated or removed some report references to ensure correct feature mapping and avoid duplication. * Update 001_TestDataBaseSmoke.feature * #IRP-722 fix features * Update feature files for table columns and test steps Adjusted table column order and content in several feature files to align with updated business logic. Added and removed steps in scenarios to streamline functional option settings and test data preparation. Corrected expected values in cash transaction scenarios for accuracy. * Update incident and accounting feature setup steps * Update storage volume setup in test features --------- Co-authored-by: Natalia Trukhachova <66120736+Severnity@users.noreply.github.com>
252 lines
11 KiB
Gherkin
252 lines
11 KiB
Gherkin
#language: en
|
|
@tree
|
|
@Positive
|
|
@ExtensionReportForm
|
|
|
|
Feature: Outging messages
|
|
|
|
|
|
|
|
Variables:
|
|
Path = "{?(ValueIsFilled(ПолучитьСохраненноеЗначениеИзКонтекстаСохраняемого("Path")), ПолучитьСохраненноеЗначениеИзКонтекстаСохраняемого("Path"), "#workingDir#")}"
|
|
|
|
Background:
|
|
Given I launch TestClient opening script or connect the existing one
|
|
|
|
Scenario: _4001801 preparation (Outging messages)
|
|
When set True value to the constant
|
|
* Load info
|
|
When Create catalog ObjectStatuses objects
|
|
When Create catalog ItemKeys objects
|
|
When Create catalog ItemTypes objects
|
|
When Create catalog Units objects
|
|
When Create catalog Items objects
|
|
When Create catalog PriceTypes objects
|
|
When Create catalog Specifications objects
|
|
When Create chart of characteristic types AddAttributeAndProperty objects
|
|
When Create catalog AddAttributeAndPropertySets objects
|
|
When Create catalog AddAttributeAndPropertyValues objects
|
|
When Create catalog Companies objects (Main company)
|
|
When Create catalog Companies objects (own Second company)
|
|
When Create catalog BusinessUnits objects
|
|
When Create catalog Stores objects
|
|
When Create catalog Partners objects (Ferron BP)
|
|
When Create catalog Partners objects (Kalipso)
|
|
When Create catalog Companies objects (partners company)
|
|
When Create catalog Countries objects
|
|
When Create information register PartnerSegments records
|
|
When Create catalog PartnerSegments objects
|
|
When Create catalog Agreements objects
|
|
When Create chart of characteristic types CurrencyMovementType objects
|
|
When Create information register PricesByItemKeys records
|
|
When Create catalog IntegrationSettings objects
|
|
When Create information register CurrencyRates records
|
|
When Create catalog InterfaceGroups objects
|
|
When Create catalog Currencies objects
|
|
When Create catalog IntegrationSettings objects (Attach File Control)
|
|
When Create catalog AttachedDocumentSettings objects
|
|
When Create catalog FileStorageVolumes objects (Attach File Control)
|
|
When Create catalog CashAccounts objects
|
|
When Create catalog PaymentTypes objects
|
|
When Create catalog TaxRates objects
|
|
When Create catalog Taxes objects
|
|
When Create information register TaxSettings records
|
|
When Create information register Taxes records (VAT)
|
|
When Create catalog Workstations objects
|
|
When Create chart of characteristic types AddAttributeAndProperty objects (Attach File Control)
|
|
When Create catalog BusinessUnits objects
|
|
When Create document SalesInvoice objects
|
|
When Create catalog AccessGroups and AccessProfiles objects (audit lock)
|
|
When Create catalog IntegrationSettings objects (Email)
|
|
And I execute 1C:Enterprise script at server
|
|
| "Documents.SalesInvoice.FindByNumber(15).GetObject().Write(DocumentWriteMode.Posting);" |
|
|
* Add VA extension
|
|
Given I open hyperlink "e1cib/list/Catalog.Extensions"
|
|
If "List" table does not contain lines Then
|
|
| "Description" |
|
|
| "VAExtension" |
|
|
When add VAExtension
|
|
* Default files storage
|
|
And I open Functions for technical specialist window (Extension)
|
|
And I expand current line in "Table" table
|
|
And I go to line in "Table" table
|
|
| "Name" |
|
|
| "Default files storage volume" |
|
|
And I select current line in "Table" table
|
|
And I click Select button of "Default files storage volume" field
|
|
And I go to line in "List" table
|
|
| 'Description' |
|
|
| 'DEFAULT DOCUMENT STORAGE' |
|
|
And I select current line in "List" table
|
|
And I click "Save and close" button
|
|
And I open Functions for technical specialist window (Extension)
|
|
And I expand current line in "Table" table
|
|
And I go to line in "Table" table
|
|
| "Name" |
|
|
| "Default picture storage volume" |
|
|
And I select current line in "Table" table
|
|
And I click Select button of "Default picture storage volume" field
|
|
And I go to line in "List" table
|
|
| 'Description' |
|
|
| 'DEFAULT DOCUMENT STORAGE' |
|
|
And I select current line in "List" table
|
|
And I click "Save and close" button
|
|
And I close TestClient session
|
|
Given I open new TestClient session or connect the existing one
|
|
|
|
Scenario: _4001802 check preparation
|
|
When check preparation
|
|
|
|
# Scenario: _4001803 test connection (Email)
|
|
# And I close all client application windows
|
|
# * Select Email integration settings
|
|
# Given I open hyperlink "e1cib/list/Catalog.IntegrationSettings"
|
|
# And I go to line in "List" table
|
|
# | "Description" |
|
|
# | "Email" |
|
|
# And I select current line in "List" table
|
|
# * Check connection
|
|
# And in the table "ConnectionSetting" I click "Test" button
|
|
# Then there are lines in TestClient message log
|
|
# |'Success'|
|
|
# And I close all client application windows
|
|
|
|
# Scenario: _4001804 send email (SI)
|
|
# And I close all client application windows
|
|
# Try
|
|
# And the previous scenario executed successfully
|
|
# Except
|
|
# Then I stop the execution of scripts for this feature
|
|
# * Select SI
|
|
# And I close all client application windows
|
|
# Given I open hyperlink "e1cib/list/Document.SalesInvoice"
|
|
# And I go to line in "List" table
|
|
# | 'Number' |
|
|
# | '15' |
|
|
# * Print
|
|
# And I click "Sales invoice" button
|
|
# * Send message
|
|
# And I click "Send by message" button
|
|
# And I select from "Mail account" drop-down list by "Email" string
|
|
# And "Attachments" table became equal
|
|
# | 'Presentation in letter' | 'File' |
|
|
# | 'SalesInvoicePrint.pdf' | 'SalesInvoicePrint.pdf' |
|
|
# * Save
|
|
# And I click "Save" button
|
|
# And I click "Send" button
|
|
# When I Check the steps for Exception
|
|
# | 'And I click "Save" button' |
|
|
# And I delete "$$OutgoingMessage4001804$$" variable
|
|
# And I save the window as "$$OutgoingMessage4001804$$"
|
|
# And I close all client application windows
|
|
# * Check related documents structure
|
|
# Given I open hyperlink "e1cib/list/Document.SalesInvoice"
|
|
# And I go to line in "List" table
|
|
# | 'Number' |
|
|
# | '15' |
|
|
# And I click "Related documents" button
|
|
# And "DocumentsTree" table became equal
|
|
# | 'Presentation' | 'Amount' |
|
|
# | 'Sales invoice 15 dated 07.10.2020 01:19:02' | '800,00' |
|
|
# | '$$OutgoingMessage4001804$$' | '' |
|
|
# And I close all client application windows
|
|
# * Create one more email (same SI)
|
|
# And I close all client application windows
|
|
# Given I open hyperlink "e1cib/list/Document.SalesInvoice"
|
|
# And I go to line in "List" table
|
|
# | 'Number' |
|
|
# | '15' |
|
|
# * Print
|
|
# And I click "Sales invoice" button
|
|
# * Send message
|
|
# And I click "Send by message" button
|
|
# And I select from "Mail account" drop-down list by "Email" string
|
|
# And "Attachments" table became equal
|
|
# | 'Presentation in letter' | 'File' |
|
|
# | 'SalesInvoicePrint.pdf' | 'SalesInvoicePrint.pdf' |
|
|
# And I click "Save" button
|
|
# And I click "Send" button
|
|
# When I Check the steps for Exception
|
|
# | 'And I click "Save" button' |
|
|
# And I delete "$$OutgoingMessage40018041$$" variable
|
|
# And I save the window as "$$OutgoingMessage40018041$$"
|
|
# And I close all client application windows
|
|
# * Check
|
|
# Given I open hyperlink "e1cib/list/Document.SalesInvoice"
|
|
# And I go to line in "List" table
|
|
# | 'Number' |
|
|
# | '15' |
|
|
# And I click "Related documents" button
|
|
# And "DocumentsTree" table became equal
|
|
# | 'Presentation' | 'Amount' |
|
|
# | 'Sales invoice 15 dated 07.10.2020 01:19:02' | '800,00' |
|
|
# | '$$OutgoingMessage4001804$$' | '' |
|
|
# | '$$OutgoingMessage40018041$$' | '' |
|
|
# And I close all client application windows
|
|
# * Check attached files
|
|
# Given I open hyperlink "e1cib/list/Document.SalesInvoice"
|
|
# And I go to line in "List" table
|
|
# | 'Number' |
|
|
# | '15' |
|
|
# And I click "Attached files" button
|
|
# And "FileList" table became equal
|
|
# | 'File' | 'Extension' | 'Volume' |
|
|
# | 'SalesInvoicePrint.pdf' | 'pdf' | 'DEFAULT DOCUMENT STORAGE' |
|
|
# And I close all client application windows
|
|
# * Change SI and send mail
|
|
# Given I open hyperlink "e1cib/list/Document.SalesInvoice"
|
|
# And I go to line in "List" table
|
|
# | 'Number' |
|
|
# | '15' |
|
|
# And I select current line in "List" table
|
|
# And I go to line in "ItemList" table
|
|
# | "Item" | "Item key" | "Quantity" |
|
|
# | "Trousers" | "38/Yellow" | "1,000" |
|
|
# And I activate "Quantity" field in "ItemList" table
|
|
# And I select current line in "ItemList" table
|
|
# And I input "2,000" text in "Quantity" field of "ItemList" table
|
|
# And I finish line editing in "ItemList" table
|
|
# And I click "Post" button
|
|
# And I click "Sales invoice" button
|
|
# Then "Print form" window is opened
|
|
# And I click "Send by message" button
|
|
# And I select from "Mail account" drop-down list by "email" string
|
|
# And I click "Save" button
|
|
# And I click "Send" button
|
|
# And I delete "$$OutgoingMessage40018042$$" variable
|
|
# And I save the window as "$$OutgoingMessage40018042$$"
|
|
# And I close all client application windows
|
|
# * Check
|
|
# Given I open hyperlink "e1cib/list/Document.SalesInvoice"
|
|
# And I go to line in "List" table
|
|
# | 'Number' |
|
|
# | '15' |
|
|
# And I click "Related documents" button
|
|
# And "DocumentsTree" table became equal
|
|
# | 'Presentation' | 'Amount' |
|
|
# | 'Sales invoice 15 dated 07.10.2020 01:19:02' | '1 199,99' |
|
|
# | '$$OutgoingMessage4001804$$' | '' |
|
|
# | '$$OutgoingMessage40018041$$' | '' |
|
|
# | '$$OutgoingMessage40018042$$' | '' |
|
|
# And I close all client application windows
|
|
# * Check attached files
|
|
# Given I open hyperlink "e1cib/list/Document.SalesInvoice"
|
|
# And I go to line in "List" table
|
|
# | 'Number' |
|
|
# | '15' |
|
|
# And I click "Attached files" button
|
|
# And "FileList" table became equal
|
|
# | 'File' | 'Extension' | 'Volume' |
|
|
# | 'SalesInvoicePrint.pdf' | 'pdf' | 'DEFAULT DOCUMENT STORAGE' |
|
|
# | 'SalesInvoicePrint.pdf' | 'pdf' | 'DEFAULT DOCUMENT STORAGE' |
|
|
# And I close all client application windows
|
|
|
|
# Scenario: _4001805 check message que to send
|
|
# And I close all client application windows
|
|
# Given I open hyperlink "e1cib/list/InformationRegister.MessagesQueueToSend"
|
|
# And "List" table became equal
|
|
# | 'Message' | 'Sent' | 'Date sent' | 'Number attempts' | 'Last warning' |
|
|
# | '$$OutgoingMessage4001804$$' | 'Yes' | '*' | '1' | '' |
|
|
# | '$$OutgoingMessage40018041$$' | 'Yes' | '*' | '1' | '' |
|
|
# | '$$OutgoingMessage40018042$$' | 'Yes' | '*' | '1' | '' |
|
|
# And I close all client application windows |