Accenture Products & Platforms (APP) Accenture Health .

2y ago
26 Views
2 Downloads
2.95 MB
44 Pages
Last View : 30d ago
Last Download : 3m ago
Upload by : Vicente Bone
Transcription

Alias Framework Reference GuideAccenture Products & Platforms (APP)Accenture Health & Public ServicesAccenture Human Services SuiteALIAS Framework Reference GuideCopyright 2020 Accenture All Rights Reserved.1

Alias Framework Reference GuideTable of Contents1.2.Overview. 31.1.Audience . 31.2.Tools. 3ALIAS Structure . 42.1.3.4.src (source code file) . 43.1.2.config .63.1.3.models . 113.1.4.scripts . 123.1.5.SourceDataFiles . 16How Database and Web Services Work Together? . 162.3.Project Dependecies – Core POM dependencies . 19How to Use the Alias Project . 203.1.Script Creation . 203.2.Generate POM . 233.3.Script Execution. 263.4.Generate Report . 28Alias Capabilities . 305.1.7.3.1.1.2.2.4.1.6.Alias Framework Structure . 4Accessibility Feature. 314.1.1.How to test Accessibility in Alias Framework:. 321.1.2How to view Accessibility Results in a Script Flow . 34Other Alias Capabilities . 37Appendix. 386.1.Alias Command Index . 386.2.Install Maven . 38Revision History . 44Copyright 2020 Accenture All Rights Reserved.2

Alias Framework Reference Guide1.OverviewThis document provides instructions on how to setup Accenture Logic Inspection and Auditing System (ALIAS) automationframework and steps for creating new test scripts using the framework and executing them.Note: ALIAS is a testing automation tool.1.1.Audience Developers Testers1.2.ToolsThe following table provides the tools required to setup the ALIAS project.Note: You must install these tools prior to setting up the ALIAS project in the order given below:Table 1: Tools for ALIAS SetupToolJava (Windows)Eclipse (version 4.8.0)Eclipse Cucumber PluginGITCopyright 2020 Accenture All Rights Reserved.Download LinkLatest version available on Java siteEclipse-IDE-Java-Developers(Windows /update-site/http://10.3.16.31:8080/Where 10.3.16.31 is the Server IP and 8080 is the Port number3

Alias Framework Reference Guide2.ALIAS StructureThis section explains the Alias client project structure and it’s configuration.2.1.Alias Framework StructureThe Alias client project consists of the following main artifacts:3.1.1.–src (source code file)Src contains all the classes that the framework generates. You can classify them as follows: Glue code is generated for the reusable components. This is the only source code that the Alias clientproject users must check in. Reusable components are available for all other users. When a user creates / updates any reusable feature, the corresponding reusable Java class that containsthe glue code is generated upon executing the feature. Refer to the below screenshot as an example:Figure 1 Reusable Java Class with Glue Code When a scenario name is followed by : : Java Class Name , it indicates the corresponding scenario isreusable.Notes: While assigning a scenario name, ensure it is unique. That way you can consider the given name as a gluecode that you can reuse in other scenarios. For example: log into ABMS is a scenario name and Then is asyntax. Java class name (for example: ABMS Login) must also be unique. Else Alias overrides an existinggenerated classes. When you update the reusable scenario in a feature, make sure to check in the generated class. The POM generator generates the POM classes which are used for script execution. These files aregenerated automatically after you make updates to the model file(s). You need not maintain or check themin manually. The below snippet shows how the generated structure looks like. You must run PagePOMgenerator class togenerate or regenerate these files after the model file updates.Figure 2 Structure of Generated POM ClassesCopyright 2020 Accenture All Rights Reserved.4

Alias Framework Reference Guide–The source code folder contains the following resources, as shown in the screenshot below: config model Scripts SourceDataFilesFigure 3 Resources in Source Code FolderCopyright 2020 Accenture All Rights Reserved.5

Alias Framework Reference GuideLet’s review the resources in detail below:3.1.2.-configIncludes the automationConfig.json, env.json, queries.json, and webService.json files.Let’s look at each of these files in more detail:Below is the automationConfig.json file that provides the main configuration settings to execute alhost:4444"},"alias":{"env":"Prodfix ce":"Desktop","headlessMode":false}}Copyright 2020 Accenture All Rights Reserved.6

Alias Framework Reference GuideThe below table provides the details on the element included in the automationConfig.json file and it’s configurationsettings:Table 2 Element Included in the automationConfig.json FileElementJIRAConfiguration Settings"enabled":false,DescriptionEnabled means any unique script failure is uploadedas a defect in JIRA while running a report.Values can either be true or false.True: Indicates that Alias will upload an error for thefailed script as a defect in JIRA.False: Indicates that Alias will not upload an error forthe failed script a defect in JIRA.Grid"url":"",Displays the URL for JIRA"userName":"",Shows the username used to create a defect uploadedin JIRA"password":"",Shows the password for the corresponding usernameused to create a defect uploaded in JIRA"project":"ALIAS",Shows the JIRA project where the defect is created"application":"ABMSShows the application for which the defect is created"enabled":true,Values can either be true or false.True indicates that Alias will execute scripts onselenium grid previously created.False indicates that Alias will execute scripts in theuser’s local desktop.Alias"url":"http://localhost:4444"Display the URL for the selenium grid."env":"Prodfix 7.3.x",Shows the name of the environment that Alias uses tolook for the environment details in the .json file forscript execution."scenarioGeneratorMode":true,Values can either be true or false.True means Alias will generate the reusablecomponents when a reusable scenario is executed.False means Alias will not generate the reusablecomponents when a reusable scenario is executed."rowBasedData":false,Copyright 2020 Accenture All Rights Reserved.Values can either be True or False.7

Alias Framework Reference GuideElementConfiguration SettingsDescriptionTrue means Alias will use the first row in the datasources as an index to find data.False means Alias will use the first column in the datasources as an index to find data."enableAccessibilityTest":false,Values can either be true or false.True means Alias will run any page used in a scriptduring execution through the axe framework.False means Alias will not run any page used in ascript during execution through the axe framework."screenshotsOnErrorOnly":true,Values can either be true or false.True means Alias will only capture screenshots whenan error happens during execution.False means that Alias will capture a screenshot onevery single step during script execution.Note that setting this to False may help in debugginghowever can lead to a huge file size."pageLoadWait":"0",pageLoadWait settings is a framework level settingsthat is applicable to the entire project. Currently, thereis no wait between the page refresh within a script."logLevel":"debug"Debug option logs more information such as Xpath foreach field into the Output section of the test report.This is applicable for the Alias ataFiles/upload/"Project location where Alias looks for files that need tobe uploaded to the target application during scriptexecution.Note: This location may vary in the Jenkins box.Hence, this property is externalized.Target"browser":"chrome",Defines the web driver / browser that Alias will use forthe script execution.Web Driver options: IE, Firefox, Chrome"device":"Desktop",The browser rendering mode that Alias will use toexecute the script.Desktop is the default option. Another option is mobilethat opens the browser in the emulator mode and isonly enabled for the chrome browser. This means ifyou want to test a script in the mobile mode, browseroption should be chrome."headlessMode":falseCopyright 2020 Accenture All Rights Reserved.True means the script is being executed in the localdesktop and will run in the headless mode. This8

Alias Framework Reference GuideElementConfiguration SettingsDescriptionindicates the script will only run in the memory withoutopening any browser.False means script will not run in the headless modeand Alias will open a browser.Below is the env.json file that sets up the url and unique name for each environment.Note: You can create any number of applications. The application name should the application name given in the metadatafiles."version":"1.0","envList": {"Prodfix 7.3.x": {"release":"7.3.x","dbDriver": "oracle.jdbc.OracleDriver","applications": {"ABMS": {"appUrl": ","dbUser": "ABMSUSER","dbPwd":"Aust1n"},"SSP": {"appUrl": ,"dbUrl": ser": "ACSSPUSER","dbPwd":"Ch1cag0"},"PE": {"appUrl": ,"PP": {"appUrl": rtal"}},"endpointurl" : {"GetCaseDetailsService": " ","VerifyLawfulPresenceService" : " ervice"}Copyright 2020 Accenture All Rights Reserved.9

Alias Framework Reference GuideThe below example shows how the env.json file sets up the url and unique name for each environment:This file provides the credentials that Alias uses to access database URL. This file also contains the endpoint URL that aweb service uses for the corresponding environment. In the above env.json file, GetCaseDetailsService is the web servicealong with its URL that is used for the applicable environment.Figure 4; Env.json File Elements ExampleBelow is the Queries.json file that provides the list of the queries used to execute a feature script. Its’ the SQL query thatcorresponds to the query name.{"queryList":{"RIDP Primary Final Decision":"Select RESPONSE CODE,RESPONSE CODE DESCRIPTION,DECISION CODE fromidentity response where IDENTITY REQUEST ID (Select * from (Select IDENTITY REQUEST ID fromidentity request where last name ' (Last Name Person 1)') where ROWNUM 1) order by CREATEDDTMdesc","query2":"select * from tab","QHP REF FLAG INDICATOR01":"Select QHP REF IND from PGM PERS DETL where ROWNUM 1 order byUPDATED ON desc;","QHP REF FLAG INDICATOR02":"Select QHP REF IND from EDBC PERS where ROWNUM 1 order byUPDATED ON desc;","MM Rescind Scenario4":"Select p.id pgm id, p.pgm code, pers app event id, pers.first name,pers.last name, null as pgm app event id, e.event id, e.type code, e.type rsn code, e.event date,e.eff date from event e, pgm p, pgm pers pp, pers app pa, pers app event pae, case c, pers wherepers.id pp.pers id and e.event id pae.event id and c.id p.case id and p.id pp.pgm id andpp.id pa.pgm pers id and pa.id pae.pers app id and c.serial num identif (CaseNumber)"}}Below is the webService.json file that provides the names of the web service used to execute a feature script. The pathincluded in the file below is the path for the XML request used for the web service.{"templatePath": e.xml"}}Copyright 2020 Accenture All Rights Reserved.10

Alias Framework Reference Guide3.1.3.models–Provides the metadata files for ABMS, ACSSP, Presumptive Eligibility and Provider Portals. Note that eachapplication requires its own metadata file and each metadata sheet name should indicate the application name.–It is a repository of all web elements. It contains required elements such as Screen Name, Label, FieldName,Type, and Path. The optional elements include isMultiple, Version, Create, WaitTime, Conditional etc.–Refer to the screenshot below as an example for ABMS model:Figure 5: ABMS Model Spreadsheet Example–The elements indicate the following: Screen Name: Shows the web page to which the web element belongs. Note that each screen can haveone or more page mode hence the screen elements will have different Xpaths based on the page mode. Forinstance, view and edit modes for the same screen will have different elements and xpaths. Hence,separate pages are created allowing the elements that go with a view mode to be grouped together and theones with the edit mode to be grouped together.Label: Indicates the label by which the web element is used in the script. For example: First Name. Labelgenerally corresponds to the field name or a short form of a field name on the screen. It is used to explicitlypopulate a certain field in the test script. FieldName: Indicates the web element name by which the web element is used by the data source.“FieldName” is used to link the data sheet (Source Data File) and the current row. In the datasheet, theFieldName is used to identify the data for the given row/field.Type: Indicates the type of web element. For example: button, text, dropdown, checkbox, radio, and link. XPath: Shows the location of the web element on the web page. Wait Time: Indicates the time Alias looks for the web element before failing the script. This is optional. Ifprovided, engine will attempt to identify until the provided wait time. Wait time is mentioned in seconds. Order: Indicates the order in which the web elements are populated on the screen. If not provided, systemwill use the default order of elements in the input file. Mode: Indicates if the given webelement is applicable to all modes or only specific mode below. A- All modes – indicates the given element is visible in both Desktop and Mobile render modes.Copyright 2020 Accenture All Rights Reserved.11

Alias Framework Reference Guide D – Desktop only - indicates the given element is visible only in the Desktop render mode. M – Mobile only - indicates the given element is visible only in the Mobile render mode.Key points to keep in mind when creating a model for an application:–Every line is a unique web element.–Each web element has required properties that should be defined.–It is important to NOT have duplicate web element labels for the same web page. Else the existing label will beoverridden by the new one.–If the screen name has a word popup at the end, it means the screen is a pop up window. For example, ABMSAdd Journal Entry Popup. While populating the data to a pop up screen,, Alias understands to change the viewmode from main window to a popup window.–Web elements that belong to the same page not necessarily need to be in sequence within the model, howeverit is highly recommended.–For screen names, labels, and field names, follow the below syntax rules.3.1.4. Do not use special characters. Only use letters, numbers and spaces. Do not use upper case in the middle of the word. For example: the field name should be written as FirstName instead of FirstName. Do not leave empty spaces in the beginning or at the end of the names.scripts Contains test scripts written in cucumber for applications for which model/object repository data is captured. Steps in the test scripts are written by Gherkin language using syntax such as Given, When, Then, And etc. Let’stake an example of an existing script below called Login.feature:Figure 6: Feature File (Script) ExampleCopyright 2020 Accenture All Rights Reserved.12

Alias Framework Reference GuideLet’s discuss each part of the above example below: Tags – A tag helps to group the script during execution. It helps to identify the category that the script belongs to.Tags are also used to identify the applicable jenkins job that will execute the script. For example, @smoke tag willbe picked up by the smoke Jenkins job. Once the jenkins job is run, the final cucumber HTML report groups thescripts results by tags.@reuse in the above snippet is one example of a tag.Some key points to keep in mind for tags: –Scripts that include the @ignore tag will not be executed.–You can add any amount of tags, as needed. However, it is recommended to review the list of existing tagsbefore you create a new one.–Tags are case sensitive. For example, @Smoke and @smoke are considered 2 separate tags.Feature - Specifies the feature file name followed by the person’s name who created the feature.Note: It is highly recommended to provide as much details for each feature in the recommended format shown inthe screenshot below:Figure 7 Format for Feature Background: Defines the data that the script uses for execution. As per Gherkin language, background is executedeach time before a scenario is executed in a feature file. Note that there can be multiple scenarios in a feature filewhich means the background will be executed multiple times.Let’s look at the below snippet as an example:Figure 8 Format for Background–Background will always include the step that defines the script name. It is recommended to keep the script nameunder 30 characters.–The syntax used such as Then, When etc. are optional, can be interchanged with one another and/or can bereplaced with an asterisk (*).–Background also defines the data source for a particular data set. This is only applicable when the data isneeded to use from the data sheet.Copyright 2020 Accenture All Rights Reserved.13

Alias Framework Reference GuideFor more information on how to define a data source, refer to the instructions defined in How to define a data sourceprocess within the Alias Command Index included in the Appendix section of this document. Scenario: Scenarios are the series of actions that take place in a script execution. Each scenario is independent ofeach other and should be ordered in sequence. You must provide a scenario name following the syntax rulesdefined in the models section above.Below is an example of scenarios in a Login script.Figure 9 Format for Scenario–Scenario name can be written in the below 2 ways: Simple Text ( For example, Preconditions or Close Browser as shown in line 10 and 19 in the abovesnippet) – This is a one-time step in a given feature file. Precondition is a scenario defined in the beginningin order to execute the steps generally needed at the start of the feature and are common to all scenarios.For example: Opening the browser is a step listed under Precondition as it is not required to be executed foreach scenario in a given feature. Text separated by : : (For example, Log into ABMS:: ABMS Login as shown in line 13) – This formatindicates the scenario has reusable components which can be used in other scripts.Scenario naming format with reusable components: Unique Scenario Name : : Unique Reusable Java ClassName The unique scenario name can be used as a step in any other feature file(s), as needed.Copyright 2020 Accenture All Rights Reserved.14

Alias Framework Reference GuideLet’s look how reusable scenario is used in any other feature file:In our above example, Log into ABMS:: ABMS Login is a reusable scenario which is also used in another script. Refer tothe screenshot below for Non Compliance script as an example on how Log into ABMS reusable scenario is used in thisscript.Figure 10 Script Example Using Reusable ScenarioWhen a reusable scenario is used in another script, it is important to know that the background for the original scenario willnot be executed in the other script unless conditions are defined in the other script. Note that the data set used in areusable scenario defined in the original script will need to be also defined in the other script that’s reusing the scenario. Inthe above example for ABMS Login script, ABMS Login Data is the data set used which is also defined in theNon Compliance feature script, as shown in the screenshot below.Note that Alias provides the possibility of providing a different data set name. Refer to How to use datasources in theCommand Index included in the Appendix section of this document.Figure 11: Script Example Using Reusable Scenario Data SetCopyright 2020 Accenture All Rights Reserved.15

Alias Framework Reference GuideBelow are the key reusable components conditions to keep in mind:-The scenario name with reusable components cannot be used in any other script in Alias.-The reusable scenario will be available for use in other script(s) only when it has been successfully executed at leastonce in the original script.-If any changes has been made to a reusable scenario, the updated scenario need to be executed at least once for itto execute it successfully in the other scripts.-Do not re use the reusable scenario in the script it was created.3.1.5.SourceDataFilesThe source data files contain the data files / values used in the test scripts. The data files contain the Field Name, PageName Reference, and the corresponding values.Key points to keep in mind for the source data files structure: The data is separated by the application type. The Field Name column (Column A) is the index of the values. It should never have any empty lines and the lastline should always say the text END. The Field Name column should not have duplicate values and should always follow the syntax rules. In case of multiple scenarios, each scenario is called out in a different column in the data source file and a script foreach scenario exists in Alias. The date pattern used is given below:–#d( 0 0 0 MM/yyyy) – populates today’s day, month and year–#d( 1 0 0 dd/MM/yyyy) – adds one day to today’s day, month and yearFigure 12 Source Data Files Structure2.2.How Database and Web Services Work Together?To use the database, the below key things are required: Database configurations should be properly set up for the specific application environment you want to use.–Configurations should be set up in the env.json file. For example: to use Prod fix 7.3.x environment, add thedatabase driver, database URL, database user and the corresponding password. Alias uses these credentials toaccess the given URL.Copyright 2020 Accenture All Rights Reserved.16

Alias Framework Reference Guide– Currently, JDBC thin driver is the only database driver supported currently.Queries that you want to use should be set up.–To set up the query, include the name of the query and the query in the env.json file. For example: Name: RIDPPrimary Final Decision. The RESPONSE CODE, RESPONSE CODE DESCRIPTION, and theDECISION CODE results from this query. The queries contain the placeholder(s) which will be passed from thefeature or the data file. For example: (Last Name Person 1). This naming convention followed for theplaceholder is (FieldName).–Use a specific command required to execute a query. The below command is used to execute the query.Engine then takes the query and run it against the database URL, and the user provided in the configurationsettings. The result is saved in the context of the active data set.Then execute "QueryName" query–Use a specific command required to validate the contents of the query results. The below command is used tovalidate the query.Then Validate "Response Code" data "RESPONSE CODE" from query resultsIn the above command, "Response Code" is a value provided in the DataSource used, however the"RESPONSE CODE" is the result from the query used and should match the name of the column of what wasreceived.Note: If validation fails, the script fails here. If successful, the script execution continues.To use the Web Services, the below key things are required : A template of the soap webservice request needs to be specified and is dynamically loaded with the passed valuesto hit the soap webservices. The key things for the template that you should keep in mind:–The dynamic variables should end with # in the soap webservice request template file.–Ensure that the variable name specified in the template should match with the variable names in the excel sheetor the captured variables.–For Example: gcd:CaseNumber CASENUMBER# /gcd:CaseNumber –Template xml path : \xmlTemplates–This is located in the ALIAS client project. But the template path can be anything and should include the xml filename in the below mentioned json file.Copyright 2020 Accenture All Rights Reserved.17

Alias Framework Reference GuideJson file for Template path :webService.json, For Example:{"templatePath": e.xml"}}Json File for Endpoint Url :The endpoint URLs are environment specific and should be mentioned in the Env.json. An example of endpoint URLs asspecified in the env.json file is as below:"Prodfix 7.3.x": {"release":"7.3.x","dbDriver": "oracle.jdbc.OracleDriver","applications": {"ABMS": {"appUrl": ","dbUser": "ABMSUSER","dbPwd":"Aust1n"},"SSP": {"appUrl": ,"dbUrl": ser": "ACSSPUSER","dbPwd":"Ch1cag0"},"PE": {"appUrl": ,"PP": {"appUrl": "https://demo.ahps123.com:99

Accenture Products & Platforms (APP) Accenture Health & Public Services Accenture Human Services Suite . Another option is mobile that opens the browser in the emulator mode and is only enabled for the chrome browser. This means if you want to t

Related Documents:

Accenture Wealth Management kendra.thompson@accenture.com With over 17 years of broker dealer and advisory industry experience, Kendra is focused on wealth management strategy. Based in Toronto, she leads Accenture Wealth Management globally. Edward Blomquist Research Lead Accenture Wealth and Asset Management edward.a.blomquist@accenture.com

Combining SDN and NFV SDN (fabric) and NFV (overlay) are managed separately Increased operational complexity / opex Difficult to optimize across different stacks Lack of visibility for troubleshoot and end-to-end optimization Separate resource pools OpenStack / K8S Ctrl App Ctrl App Ctrl App Ctrl App Ctrl App Ctrl App Ctrl App Ctrl App Ctrl App .

Accenture Mobile Device Management with Enterprise App Catalog Mobile application store with company-specific app catalog Automated self-registration or pre-populated enrollment User authorization for app installation Over-the-Air app installation and configuration Over-the-Air app upda

USA YOUTH SABHA SAHAJANAND SWAMI MAHARAJ SEMESTER PART I Swami Shriji Table of Contents Aashirvād App. B Week 1 Week 2 Week 3 Week 4 App. F Week 5 Week 6 App. I 1 2 App. A 3 App. C 10 17 25 32 39 App. H

To build your first app with Reading App Builder: 1. Launch Reading App Builder from its icon on the desktop. 2. Click New App on the toolbar. The New App wizard will appear. 3. On the first page of the wizard, specify the App Name, such as Dogon Stories, Supyiré Proverbs, etc. This is the main title of your app and will be seen by the user.

Once an app is loaded, right-click the app icon on the Teams app bar, and select "pin" Pin a team app Click the " " at the top of a channel and select the app to add from the list PowerPoint 2016Build & run custom apps with Power Apps Expand app screen Click the icon to expand the app to full screen Chat within the app

Creating new Lightning Page using Lighting App Builder Salesforce Lightning pages can be created using Lightning App Builder. To create, navigate to Build Lightning Bolt Lightning App Builder New. Lightning App Builder - App page. In this step, select App page and click on next button as shown below. Lightning App Builder

Alfredo López Austin viene del Norte, de Chihuahua, de Ciudad Juárez, para mayor precisión. Nació en aquellas regiones de desiertos y climas extremos que fraguan de manera tan peculiar el espíritu de quienes ven el mundo por primera vez en esas latitudes. La primera parte de la vida de mi maestro fue muy rica, envidiablemente rica en experiencias. Cuando recuerdo alguno de los pasajes de .