You are on page 1of 9

Intelligent RPA Training

Development Phases

Initial Declaration

Tutorial 1
Contents
Tutorial 1 – Application Recognition ....................................................................................................... 2
Goals ................................................................................................................................................... 2
Pre-requisites ...................................................................................................................................... 2
Step1: create a new project ................................................................................................................ 2
Step2: declare Windows application................................................................................................... 4
Step3: declare Windows pages ........................................................................................................... 4
Step4: declare Windows items (1/2) ................................................................................................... 5
Step5: declare Windows items (2/2) ................................................................................................... 6
Step6: declare Web application .......................................................................................................... 6
Step7: declare Web application .......................................................................................................... 6
Step8: declare Web pages (1/2) .......................................................................................................... 7
Step9: declare Web items (2/2) .......................................................................................................... 8
Step10: build and start project in Debug mode .................................................................................. 8
Step11: use Page Tester ...................................................................................................................... 8

Tutorial 1 – Application Recognition

Goals

• Discover SAP Desktop Studio and create a new project,


• Capture and declare a Windows application,
• Capture and declare a Web application,
• Build and launch the project in debug mode,
• Observe and interact with the applications by using Studio Debugger.

Pre-requisites

• SAP Desktop Agent and Studio installed,


• Sample applications:
o Samples\applications\web\Eligibility
o Samples\applications\win\SampleCRM

Step1: create a new project

• Open SAP desktop Studio,


• Create a new project, with menu 'File > New project (Ctrl+N)'
• Name the project 'Tutorial1',
• Add a title and a client Name,
• You may add a comment
• You may also indicate a new path for the project,
• Validate! The project is created.
Step2: declare Windows application

• Start 'SampleCRM.exe' (in 'Sample/applications/win'),


• In Explorer perspective, add a new application,
• Select Win technology and the proper application (SampleCRM),
• Choose application properties that uniquely identify your application (here, only
EXE=SAMPLECRM.EXE is necessary and sufficient).

Note: Whenever an application with this criterion will be launched, SAP Desktop Agent will consider
it as the “Sample CRM” application.

Step3: declare Windows pages

• Start page declaration: right click on SampleCRM application > “Capture a new page…”,
• Hover your mouse over the page + press CTRL to declare the page,
• Choose page properties that uniquely identify your page,
• You may rename the page, take many captures of the page, update recognition, track events,
etc.
Step4: declare Windows items (1/2)

• Right click on the screenshot component (the 'Contract Id' input for example) > “Associate to
new Item”
• Choose component properties that uniquely identify it,
• The color border helps you to know if the criterions are precise enough,
• The “Captured Data” and “Criterions” frames help to accurately define the identification,
• You may rename the Item, update recognition, track events, capture automatically, etc.
Step5: declare Windows items (2/2)

• Identify the following items and name them accordingly:

Application component Name Object Name


Contract Id edContractID
Name edName
FirstName edFirstname
Address edAddress
ZIP Code edZIPCode
City edCity
Country edCountry
Field 1 edField1
Field 2 edField2
Field 3 edField3
Search (button) btSearch
Fill (input) edFill
Fill (button) btFill
FlatScreen oFlatScreen
GameConsole oGameConsole
NAS oNAS
Internet box oInternetBox
Sound bar oSoundBar
Home Theater oHomeTheater

Step6: declare Web application

• Start 'Eligibility.htm' (in 'Sample/applications/web/eligibility'),


• In Explorer perspective, add a new application,
• Select Web technology and the proper application (Eligibility),
• Choose application properties that identify uniquely your application (in this case, TITLE is necessary and sufficient).

Step7: declare Web application

• Start page declaration: right click on Eligibility application > “Capture a new page…”,
• Hover your mouse over the page + press CTRL to declare the page,
• Choose page properties that identify uniquely your page,
• You may rename the page, take many captures of the page, update recognition, track events, etc.
Step8: declare Web pages (1/2)

• Start page declaration: right click on Eligibility application > “Capture a new
page…”,
• Hover your mouse over the page + press CTRL to declare the page,
• Choose page properties that identify uniquely your page,
• You may rename the page, take many captures of the page, update recognition,
track events, etc.
Step9: declare Web items (2/2)

• Identify the following Items and name them accordingly:


Application component Name Object Name
Contract Id oContractID
Name oName
FirstName oFirstname
Serial Number oSerialNumber
Equipment Type oEquipmentType
Offer Type oOfferType
Eligibility oEligibility
Search btSearch
Clear btClear

Step10: build and start project in Debug mode

• Save your project,


• Close both applications,
• Launch debug mode (F5), a debug frame (Studio Debugger) appears.

Step11: use Page Tester

• Start the applications (SampleCRM and Eligibility), observe the debug frame,
• Use SampleCRM: set 'Fill' input with 20, click on 'Fill' button,
• Right click on SampleCRM LOAD event > “Show in Page Tester (F6)”,
• Use page tester: get 'edFill' value; set 'edFill' value = 70; click 'btFill'; …; close application.

You might also like