SAP GUI for Windows
Автор Nikolay Ilin, Last modified by Nikolay Ilin на 14 марта 2016 05:39 PM

SAP GUI 720

Язык: Русский, English
Алгоритм заполнения: input emulation

Описание:
Реализованы обработка формы логона и формы смены пароля.
Настройки сложности пароля - 8 символов.
В шаблоне добавлены два кастомных поля - Client и Language, которые обязательны для заполнения при создании учетной записи пользователя.

<?xml version="1.0" encoding="UTF-16"?>
<indeedIDSSOData>

  <applications>
    <application>

      <matchingDetails>
        <paths>
          <path>%ProgramFiles%\SAP\FrontEnd\sapgui\saplogon.exe</path>
        </paths>        
        <fileDescription>SAP Logon for Windows</fileDescription>
      </matchingDetails>

      <userDescription>SAP Logon (v720)</userDescription>
      <ssoPermissions>spSsoOnly</ssoPermissions>
      <forceReauthentication>1</forceReauthentication>

      <opLogon>
        <forms>
          <formData>
            <id>{88ED503C-9E28-484F-913D-E0CBB8606C0B}</id>
            <matching>
              <matchingType>CFormData::mtWin32</matchingType>
              <matchingWin32>
                <caption>
                  <value>SAP R/3</value>
                </caption>
                <ctrls>
                  <ctrl>                    
                    <enabled>1</enabled>
                    <visible>1</visible>
                  </ctrl>
                  <ctrl>
                    <className>AfxWnd90</className>
                    <ctrlId>700</ctrlId>
                    <enabled>0</enabled>
                    <visible>0</visible>
                  </ctrl>
                  <ctrl>
                    <className>AfxWnd90</className>
                    <ctrlId>700</ctrlId>
                    <enabled>0</enabled>
                    <visible>0</visible>
                  </ctrl>
                  <ctrl>
                    <className>AfxWnd90</className>
                    <enabled>1</enabled>
                    <visible>1</visible>
                  </ctrl>
                  <ctrl>
                    <className>AfxWnd90</className>
                    <ctrlId>500</ctrlId>
                    <enabled>1</enabled>
                    <visible>1</visible>
                  </ctrl>
                  <ctrl>                    
                    <ctrlId>400</ctrlId>
                    <enabled>1</enabled>
                    <visible>1</visible>
                  </ctrl>
                  <ctrl>                    
                    <enabled>1</enabled>
                    <visible>1</visible>
                  </ctrl>
                  <ctrl>                    
                    <ctrlId>100</ctrlId>
                    <enabled>1</enabled>
                    <visible>1</visible>
                  </ctrl>
                  <ctrl>
                    <className>ComboBox</className>
                    <ctrlId>200</ctrlId>
                    <depth>1</depth>
                    <enabled>1</enabled>
                    <visible>1</visible>
                  </ctrl>
                  <ctrl>
                    <className>Button</className>
                    <ctrlId>116</ctrlId>
                    <depth>1</depth>
                    <enabled>1</enabled>
                    <visible>1</visible>
                  </ctrl>
                  <ctrl>
                    <className>Edit</className>
                    <ctrlId>1001</ctrlId>
                    <depth>2</depth>
                    <enabled>1</enabled>
                    <visible>1</visible>
                  </ctrl>
                </ctrls>
                <className>SAP_FRONTEND_SESSION</className>
              </matchingWin32>
            </matching>

            <fillingAlgorithm>
              <command>
                <type>ctWait</type>
                <description>Подождать</description>
                <dataWait>
                  <periodMs>50</periodMs>
                </dataWait>
              </command>
              <command>
                <type>ctPosition</type>
                <description>Перейти на контрол ввода данных для логина</description>
                <dataPosition>
                  <ctrl>                    
                    <ctrlId>100</ctrlId>
                    <enabled>1</enabled>
                    <visible>1</visible>
                  </ctrl>
                  <waitIntervalMs>50</waitIntervalMs>
                </dataPosition>
              </command>
              <command>
                <type>ctWait</type>
                <description>Подождать</description>
                <dataWait>
                  <periodMs>50</periodMs>
                </dataWait>
              </command>
              <command>
                <type>ctControl</type>
                <description>Перейти на первый контрол</description>
                <dataControl>
                  <type>cctUp</type>
                  <waitIntervalMs>50</waitIntervalMs>
                </dataControl>
              </command>
              <command>
                <type>ctWait</type>
                <description>Подождать</description>
                <dataWait>
                  <periodMs>50</periodMs>
                </dataWait>
              </command>
          <command>
                <type>ctFillCurrentCtrl</type>
                <description>Ввести строку Client</description>
                <dataFillCurrentCtrl>
                  <fieldValueInfo>
                    <field>ffCustom</field>
            <customFieldId>Client</customFieldId>
                  </fieldValueInfo>
                </dataFillCurrentCtrl>
              </command>
              <command>
                <type>ctWait</type>
                <description>Подождать</description>
                <dataWait>
                  <periodMs>50</periodMs>
                </dataWait>
              </command>
              <command>
                <type>ctControl</type>
                <description>Перейти на сдедующий контрол</description>
                <dataControl>
                  <type>cctTab</type>
                  <waitIntervalMs>50</waitIntervalMs>
                </dataControl>
              </command>
              <command>
                <type>ctFillCurrentCtrl</type>
                <description>Ввести имя пользователя</description>
                <dataFillCurrentCtrl>
                  <fieldValueInfo>
                    <field>ffUserName</field>            
                  </fieldValueInfo>
                </dataFillCurrentCtrl>
              </command>
              <command>
                <type>ctWait</type>
                <description>Подождать</description>
                <dataWait>
                  <periodMs>50</periodMs>
                </dataWait>
              </command>
              <command>
                <type>ctControl</type>
                <description>Перейти на сдедующий контрол</description>
                <dataControl>
                  <type>cctTab</type>
                  <waitIntervalMs>50</waitIntervalMs>
                </dataControl>
              </command>
              <command>
                <type>ctWait</type>
                <description>Подождать</description>
                <dataWait>
                  <periodMs>50</periodMs>
                </dataWait>
              </command>
              <command>
                <type>ctFillCurrentCtrl</type>
                <description>Ввести пароль</description>
                <dataFillCurrentCtrl>
                  <fieldValueInfo>
                    <field>ffPassword</field>
                  </fieldValueInfo>
                </dataFillCurrentCtrl>
              </command>
              <command>
                <type>ctWait</type>
                <description>Подождать</description>
                <dataWait>
                  <periodMs>50</periodMs>
                </dataWait>
              </command>
              <command>
                <type>ctControl</type>
                <description>Перейти на сдедующий контрол</description>
                <dataControl>
                  <type>cctTab</type>
                  <waitIntervalMs>50</waitIntervalMs>
                </dataControl>
              </command>
              <command>
                <type>ctWait</type>
                <description>Подождать</description>
                <dataWait>
                  <periodMs>50</periodMs>
                </dataWait>
              </command>
              <command>
                <type>ctFillCurrentCtrl</type>
                <description>Ввести язык</description>
                <dataFillCurrentCtrl>
                  <fieldValueInfo>
                    <field>ffCustom</field>
            <customFieldId>Language</customFieldId>
                  </fieldValueInfo>
                </dataFillCurrentCtrl>
              </command>
              <command>
                <type>ctWait</type>
                <description>Подождать</description>
                <dataWait>
                  <periodMs>50</periodMs>
                </dataWait>
              </command>
              <command>
                <type>ctControl</type>
                <description>Перейти на сдедующий контрол</description>
                <dataControl>
                  <type>cctTab</type>
                  <waitIntervalMs>50</waitIntervalMs>
                </dataControl>
              </command>
              <command>
                <type>ctWait</type>
                <description>Подождать</description>
                <dataWait>
                  <periodMs>50</periodMs>
                </dataWait>
              </command>
              <command>
                <type>ctControl</type>
                <description>Нажать на OK</description>
                <dataControl>
                  <type>cctEnter</type>
                  <waitIntervalMs>50</waitIntervalMs>
                </dataControl>
              </command>
            </fillingAlgorithm>

            <filledWndMarkDeletionTime>fwmdtOnFillingFinished</filledWndMarkDeletionTime>
          </formData>
        </forms>

        <failureReaction>frTerminateApplication</failureReaction>
        <rematchAttemptsLimit>2</rematchAttemptsLimit>
        <failureReactionAskingDetails>
          <disabledOptions>
            <failureReaction>frNone</failureReaction>
          </disabledOptions>
          <isDefaultOptionDisabled>1</isDefaultOptionDisabled>
        </failureReactionAskingDetails>
      </opLogon>

      <opPasswordChange>
        <forms>
          <formData>
            <id>{5494C9FC-9872-4105-B5D0-05A541E4B36F}</id>
            <matching>
              <matchingType>CFormData::mtWin32</matchingType>
              <matchingWin32>
                <caption>
                  <value>SAP R/3</value>
                </caption>
                <ctrls>
                  <ctrl>
                    <className>Button</className>
                    <ctrlId>1</ctrlId>
                    <enabled>1</enabled>
                    <visible>1</visible>
                  </ctrl>
                  <ctrl>                    
                    <ctrlId>400</ctrlId>
                    <enabled>1</enabled>
                    <visible>1</visible>
                  </ctrl>
                  <ctrl>
                    <className>AfxWnd90</className>
                    <ctrlId>700</ctrlId>
                    <enabled>0</enabled>
                    <visible>0</visible>
                  </ctrl>
                  <ctrl>
                    <className>AfxWnd90</className>
                    <ctrlId>701</ctrlId>
                    <enabled>0</enabled>
                    <visible>0</visible>
                  </ctrl>
                  <ctrl>                    
                    <ctrlId>101</ctrlId>
                    <enabled>1</enabled>
                    <visible>1</visible>
                  </ctrl>
                  <ctrl>
                    <className>Button</className>
                    <ctrlId>111</ctrlId>
                    <depth>1</depth>
                    <enabled>1</enabled>
                    <visible>1</visible>
                  </ctrl>
                  <ctrl>
                    <className>Button</className>
                    <ctrlId>123</ctrlId>
                    <depth>1</depth>
                    <enabled>1</enabled>
                    <visible>1</visible>
                  </ctrl>
                </ctrls>
                <className>#32770</className>
              </matchingWin32>
            </matching>
            <fillingAlgorithm>
              <command>
                <type>ctWait</type>
                <description>Подождать</description>
                <dataWait>
                  <periodMs>50</periodMs>
                </dataWait>
              </command>
              <command>
                <type>ctPosition</type>
                <description>Перейти на </description>
                <dataPosition>
                  <ctrl>                   
                    <ctrlId>101</ctrlId>
                    <enabled>1</enabled>
                    <visible>1</visible>
                  </ctrl>
                  <waitIntervalMs>50</waitIntervalMs>
                </dataPosition>
              </command>
              <command>
                <type>ctWait</type>
                <description>Подождать</description>
                <dataWait>
                  <periodMs>50</periodMs>
                </dataWait>
              </command>
              <command>
                <type>ctFillCurrentCtrl</type>
                <description>Ввести имя пользователя</description>
                <dataFillCurrentCtrl>
                  <fieldValueInfo>
                    <field>ffNewPassword</field>
                  </fieldValueInfo>
                </dataFillCurrentCtrl>
              </command>
              <command>
                <type>ctWait</type>
                <description>Подождать</description>
                <dataWait>
                  <periodMs>50</periodMs>
                </dataWait>
              </command>
              <command>
                <type>ctControl</type>
                <description>Перейти на сдедующий контрол</description>
                <dataControl>
                  <type>cctTab</type>
                  <waitIntervalMs>50</waitIntervalMs>
                </dataControl>
              </command>
              <command>
                <type>ctWait</type>
                <description>Подождать</description>
                <dataWait>
                  <periodMs>50</periodMs>
                </dataWait>
              </command>
              <command>
                <type>ctFillCurrentCtrl</type>
                <description>Ввести пароль</description>
                <dataFillCurrentCtrl>
                  <fieldValueInfo>
                    <field>ffNewPassword</field>
                  </fieldValueInfo>
                </dataFillCurrentCtrl>
              </command>
              <command>
                <type>ctWait</type>
                <description>Подождать</description>
                <dataWait>
                  <periodMs>50</periodMs>
                </dataWait>
              </command>
              <command>
                <type>ctControl</type>
                <description>Перейти на сдедующий контрол</description>
                <dataControl>
                  <type>cctTab</type>
                  <waitIntervalMs>50</waitIntervalMs>
                </dataControl>
              </command>
              <command>
                <type>ctWait</type>
                <description>Подождать</description>
                <dataWait>
                  <periodMs>50</periodMs>
                </dataWait>
              </command>
              <command>
                <type>ctControl</type>
                <description>Нажать на OK</description>
                <dataControl>
                  <type>cctEnter</type>
                  <waitIntervalMs>50</waitIntervalMs>
                </dataControl>
              </command>
            </fillingAlgorithm>
            <filledWndMarkDeletionTime>fwmdtOnFillingFinished</filledWndMarkDeletionTime>
          </formData>
        </forms>

        <resultSigns>
           <formsOpFailed>
            <formData>
            <id>{64F6CF2C-2F61-409A-B398-437A783AECB2}</id>
            <matching>
              <matchingType>CFormData::mtWin32</matchingType>
              <matchingWin32>
                <caption>
                  <value>Error</value>
                </caption>
                <ctrls>
                  <ctrl>
                    <className>Button</className>
                    <ctrlId>1</ctrlId>
                    <enabled>1</enabled>
                    <visible>1</visible>
                  </ctrl>
                  <ctrl>                    
                    <ctrlId>400</ctrlId>
                    <enabled>1</enabled>
                    <visible>1</visible>
                  </ctrl>
                  <ctrl>
                    <className>AfxWnd90</className>
                    <ctrlId>700</ctrlId>
                    <enabled>0</enabled>
                    <visible>0</visible>
                  </ctrl>
                  <ctrl>
                    <className>AfxWnd90</className>
                    <ctrlId>701</ctrlId>
                    <enabled>0</enabled>
                    <visible>0</visible>
                  </ctrl>
                  <ctrl>                    
                    <ctrlId>102</ctrlId>
                    <enabled>1</enabled>
                    <visible>1</visible>
                  </ctrl>
                  <ctrl>
                    <className>Button</className>
                    <ctrlId>111</ctrlId>
                    <depth>1</depth>
                    <enabled>1</enabled>
                    <visible>1</visible>
                  </ctrl>
                  <ctrl>
                    <className>Button</className>
                    <ctrlId>112</ctrlId>
                    <depth>1</depth>
                    <enabled>1</enabled>
                    <visible>1</visible>
                  </ctrl>
                </ctrls>
                <className>#32770</className>
              </matchingWin32>
            </matching> 
            <fillingAlgorithm>  
              <command>
                <type>ctWait</type>
                <description>Подождать</description>
                <dataWait>
                  <periodMs>50</periodMs>
                </dataWait>
              </command>
              <command>
                <type>ctControl</type>
                <description>Нажать на OK</description>
                <dataControl>
                  <type>cctEnter</type>
                  <waitIntervalMs>50</waitIntervalMs>
                </dataControl>
              </command>
            </fillingAlgorithm>          
           </formData>
          </formsOpFailed>
        </resultSigns>
    <failureReaction>frAskUser</failureReaction>            
      </opPasswordChange>

      <passwordRestrictions>
        <length>8</length>
      </passwordRestrictions>

      <customFields>
        <customField>
          <id>Client</id>
          <field>
            <displayedName>Client</displayedName>
            <editLengthSymbols>3</editLengthSymbols>
        <emptyStringValueForbidden>1</emptyStringValueForbidden>
            <value>
              <type>vtString</type>
              <str></str>
            </value>
          </field>
        </customField>
        <customField>
          <id>Language</id>
          <field>
            <displayedName>Language</displayedName>
            <editLengthSymbols>2</editLengthSymbols>
            <emptyStringValueForbidden>1</emptyStringValueForbidden>
            <value>
              <type>vtString</type>
              <str></str>
            </value>
          </field>
        </customField>      
      </customFields>
      <customFieldsSelfEnrollmentOrder>
        <fieldId>ffClient</fieldId>
        <fieldId>ffLanguage</fieldId>        
      </customFieldsSelfEnrollmentOrder>
      <launcherDetails>
        <cmdLine>C:\Program Files\SAP\FrontEnd\sapgui\saplogon.exe</cmdLine>
      </launcherDetails>
    <id>{75778534-FA75-4906-9990-C5ABCEA6AD87}</id>
    </application>
  </applications>

</indeedIDSSOData>


Вложения 
 
 SAP.Logon.v720.engrus.input.emulating.custom.fields.app (40.10 кБ)
(0 голос(а))
Эта статья полезна
Эта статья бесполезна

Комментарии (0)
Добавить новый комментарий
 
 
Полное имя:
Email:
Комментарии: