1
0
mirror of https://github.com/IRPTeam/IRP.git synced 2026-04-24 03:53:25 +02:00
Files
IRP/features/Smoke/015_Catalogs_Generate.feature
Natalia Trukhachova e7782048c7 Features refact + add new features (#2616)
* add features

* Update _0500PostingCashReciept.feature

* refact smoke test

* fix

* fix features

* fix

* features refact
2024-09-20 17:35:56 +03:00

49 lines
2.3 KiB
Gherkin

#language: en
@tree
@SmokeTest
Feature: Smoke tests - Catalogs - Generate
# Configuration IRP
# Version: 2024.32.117
Background:
Given I launch TestClient opening script or connect the existing one
And I close all client application windows
Scenario: Generate item Catalogs "Service exchange history" (Unit_ServiceExchangeHistory)
* Search for a link to an existing item
And I execute 1C:Enterprise script at server
| 'Query = Новый Query;' |
| 'Query.Text = "SELECT TOP 1 CurrentDataSource.Ref AS Ref FROM Catalog.Unit_ServiceExchangeHistory AS CurrentDataSource WHERE Not CurrentDataSource.DeletionMark And Not CurrentDataSource.Predefined";' |
| 'QueryResult = Query.Execute();' |
| 'Selection = QueryResult.Select();' |
| 'While Selection.Next() Do' |
| 'Объект.ЗначениеНаСервере = GetURL(Selection.Ref);' |
| 'EndDo;' |
And I save 'Объект.ЗначениеНаСервере' in 'НавигационнаяСсылка' variable
If 'ValueIsFilled($НавигационнаяСсылка$)' then
* Open form of an existing item
Given I open hyperlink '$НавигационнаяСсылка$'
If the warning is displayed then
Then I raise "Could not open existing item Catalogs Unit_ServiceExchangeHistory" exception
If current form name is "ErrorWindow" Then
Then I raise "Could not open existing item Catalogs Unit_ServiceExchangeHistory" exception
And I save form header as 'ЗаголовокФормы' variable
* Generate Catalogs Unit_MockServiceData
Then '$ЗаголовокФормы$' window is opened
If 'ФормаСправочникUnit_MockServiceDataСоздатьНаОсновании' attribute is present on the form Then
And I click the button named 'ФормаСправочникUnit_MockServiceDataСоздатьНаОсновании'
If the warning is displayed then
Then I raise "Failed to Generate Catalogs Unit_MockServiceData based on Catalogs Unit_ServiceExchangeHistory" exception
If current form name is "ErrorWindow" Then
Then I raise "Failed to Generate Catalogs Unit_MockServiceData based on Catalogs Unit_ServiceExchangeHistory" exception
Then '* (создание)' window is opened
And I close '* (создание)' window