UiPath Autopilot™ for Testers - Zero to Hero - Session 2

DianaGray10 188 views 18 slides Sep 18, 2024
Slide 1
Slide 1 of 18
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18

About This Presentation

UiPath Test Suite Data Generation Capabilities

Explore diverse data sources including file-based methods (CSV), AI-driven (Autopilot™), and auto-generated approaches for comprehensive SAP testing.

🤖 Smart Data Generation Using Autopilot™

Leverage AI to create tailored test data that simula...


Slide Content

Test Suite Autopilot Series -Zero to Hero -
Session 2
Session Date: 09/17/2024
Speakers: Logesh Velu, Arun Kumar A, Ganesan
Chittaranjan

Organizers/Team
Automation Delivery Leader
UiPath MVP 2024
Arun Kumar AsokanLogesh Velu
Technical Architect (Intelligent
Automation)
Ganesh Chittaranjan
SAP Practice Head

UiPath Test Suite Data Generation Capabilities
Test Data Generation Using Autopilot
Best Practices for Test Data Generation Using Autopilot
Demo: Autopilot for Testing SAP Sales Order Creation
SAP Heatmap & Change Impact Analysis
Optimizing Testing Using Autopilot Generate Insights
Agenda

UiPath Test Suite Data Generation Capabilities
UiPathDataDrivenTestingletyoutestRPAworkflowsandapplicationsacrossvarious
scenarios.Toensureyourtestcasesusethepreparedtestdata,debugandrundata-driven
testcasesonlyfromtheTestExplorerPanel.
Whenyouconfiguredatasourcesforyourdatavariation,youcanchoosefromthefollowing
options:
•File,ifyouwanttouseExcelandCSVfiles.
•GeneratewithAutopilot,fortestdatathatyoucanrefineusingAI-Powered
capabilities.
•DataService,ifyouuseDataServiceentities(AutomationCloudOnly).
•Existingdataforanytypeofdatathathasalreadybeenstoredinyourproject,inthe
TestDataFolder.
•TestDataQueueifyouhaveconfiguredaJsonSchemaandaddedatestdataqueuein
Orchestrator.
•AutoGenerate,fortestdatathatisautomaticallygeneratedtocoverasmanypathsas
possibleduringexecution.

Test Data Generation Using Autopilot
Youcangeneratetestdatathatishighlyspecifictoyourtestingneeds,usingtheAI-
PoweredcapabilitiesofferedbyUiPathAutopilot.Autopilotinitiallygeneratesbasedon
argumentsandvariablesthatmightberelevantforthetestdataset,andthenallowsyou
tofurtherrefineit,usingpromptinstructions.
Someofthesupportedargumenttypesare–
String Int32 Int64 Double
Decimal Boolean Char Byte
SByte UInt16 UInt32 UInt64
Single
TogeneratetestdataforatestcaseusingAutopilotforalow-codeorcodedtestcase:
1.OpenTestExplorer.
2.Right-clickthedesiredtestcaseandchoose"AddTestData".
3.Select"GeneratewithAutopilot"fromthedropdown.
4.Autopilotgeneratesinitialtestdatabasedonyourtestcase'sparameters.
5.Optionally,improvethedatabyaddingspecificpromptsintheprovidedtextfield.
6.Click"Import"toaddthedatatoyourtestcase.
Thisstreamlinedmethodquicklypreparestestdatatailoredtoyourneeds.
Figure 1. Dialog box when generating test data using Autopilot
EfficiencyBoost:Autopilotcansaveupto
50%ofthetimespentontestdata
managementbyauto-generatingsynthetictest
data.

Best Practices for Test Data Generation Using Autopilot
Thisapproachensuresthatyoucancreatepreciseandusefultestdataefficiently.
CreateArgumentsforDataFields:
•Useworkflowargumentstoimprovetestdataquality.
•ArgumentshelpAutopilotgeneratedatathatfitsdynamicworkflowneeds.
SpecifyDataCombinationMethod:
•Default:Autopilotcreatesabouttendatarecordsforhighcoverage.
•Customization:Requestspecificmethodslike'pairwise'or'allcombinations'.
•ExamplePrompt:"Generatetestdataforeveryargumentandcombinethedatafields
pairwise.“
CustomizeDataSetwithPrompts:
•DirectAutopilottogenerateaspecificnumberofrecordsoraddfields.
•ExamplePrompts:"Generateaminimumof25datarecords.“(or)"Includethe'Country'
field,assigninguniquevaluestoeachrecord."
UiPath’s recommended best practices for generating AI-
powered test data.

Demo –Autopilot for
Testing SAP

Demo: Autopilot for Testing SAP Sales Order Creation
UiPath'sAutopilotfortestdatagenerationisapowerfultoolforstreamliningSAP
testingprocesses,suchascreating,updating,anddisplayingsalesorders.By
automatingthegenerationoftestdata,itensuresconsistency,accuracy,and
efficiencyintesting.
Forinstance,whentestingSAPsalesorderprocesses,Autopilotcanautomatically
generatetestcaseswithprecisedataconfigurations:
•Materialisfixedto"TG11"foralltestscenarios,ensuringuniformityintheproduct
beingtested.
•Quantityisrandomizedbetween1and100,simulatingvariousordersizes.
•SoldToPartyisconsistentlysetto"17100003",aligningwithspecificcustomer
requirements.
•CustomerreferenceisarandomPOnumber,reflectingreal-worldvariabilityin
orderreferences.
•CustomerdateisautomaticallysettoanydateinSeptember2024,adheringtothe
format"09.09.2024",ensuringcorrectdatehandling.
Thisautomationnotonlyreducesmanualdataentrybutalsoincreasesthereliability
ofyourtestsbygeneratingdiverseandrepresentativedatascenarios.WithAutopilot,
youcanfocusonvalidatingfunctionalityandperformance,confidentthatyourtest
dataisaccurateandconsistent.

Additional Features for SAP
Testing

SAP Heatmap & Change Impact Analysis
Heatmap
Heatmapisadatavisualizationsolutionthathelpsbusinessusersunderstandtheusageofthe
SAPsystem,andanswerquestionsaboutwhattotestandwheretostarttestingbasedonreal
systemdata.TheheatmapofferstheChangeImpactAnalysissublayerthatanalyzesyourSAP
systemforchangesandshowsthetestingstatusofthem
•BothHeatmap&ChangeImpactAnalysissupportsSAPECC,SAPS/4HANA,SAPEWM
Systems.
•CustomerscanuseheatmapforSAPtodeterminetestrelevance,andtestcoverage
•TestRelevance:Thesizeoftheboxintheheatmapdisplayshowrelevantthetestisfor
achievingaspecificgoal.
•TestCoverage:Thecolorsoftheboxesprovideavisualizationoftheexecutionofcoverageof
atransactionthroughexecutedtestcases.
ChangeImpactAnalysis
Changeimpactanalysisrepresentstheprocessofidentifyingandassessingtheimpactofa
proposedchangetoanSAPsystem.Itisproactiveapproachthatcontributestothereliability,
stability,andefficiencyoftheSAPsystems.Intheheatmap,hovertheinformationiconnexttothe
analyzetransportstoseeanoverviewoftheimpactofchangesonyourSAPsystem.
Data visualization solution that helps understand the usage of the SAP system

Demo –SAP Heatmap

Optimizing Test Accuracy and Efficiency using Generate Insights
AutopilotforTestManagerprovidesinsightsintofailedtestcases,and
recommendationsforreducingthefailurerateinyourtestportfolio.Themoretest
resultsyouprovide,especiallywithfailedtestcases,whenyougeneratethereport,the
moreeffectiveitis.
ThegoaloftheTestInsightsistohelpunderstandthemainreasonswhyyourtests
arefailing.
•CommonErrors:Groupssimilarerrormessagessemanticallytohighlightthemost
frequentissues.
•ErrorPatterns:Categorizedfailedtestcasesintobroadercategories.These
specificcategoriesidentifyrecurringthemes,andsystematicproblems,providing
moreclearunderstandingoftheunderlyingissuesinyourtestexecution.
•Recommendations:providesactionablerecommendationsforenhancements,
designedtoguideyournextstepsinoptimizingthestabilityofyourtestexecution.
UiPath’s recommended best practices for AI-powered
Insights

Questions

FAQs
FAQ 1:Can you perform data-driven testing in Studio Web?
•No, data-driven testing features are currently exclusive to Studio Desktop. These include creating test cases, adding test data sources,
viewing test results, and assessing activity coverage.
FAQ 2:What is the difference between the Auto-Generate option in test data sources and Generate with Autopilot?
•Auto-Generate creates basic test data based on rules like If statements and Switches, often resulting in less relevant variations. AI-Generate
with Autopilot uses advanced AI to produce more realistic and valuable data based on specific prompts.
FAQ 3: How can I manage test data across multiple test cases?
•To manage test data across multiple test cases, you can select the option to "Update all test cases using the same test data"when updating
the test data. This ensures consistency across all related test cases.
FAQ 4: How can I ensure that my AI-generated test data is effective for my testing needs?
•For effective test data generation, follow best practices such as creating robust arguments, using clear instructions for your preferred data
combinations, and providing specific prompts to customize the data set. Refer to the "Generating synthetic test data" guide for detailed
recommendations.
FAQ 5:How do I analyze the impact of changes in my SAP system using Heatmap?
•To analyze changes, select "Analyze Transports" in the Heatmap. Hover over the information icon for a preview of the number of transports
that can be analyzed.

FAQs
FAQ 6:How does the Heatmap link test cases to executed transactions?
•The Heatmap links test cases to executed transactions using unique labels (e.g., TRAN). To enable this linkage, set "Enable SAP monitoring"
to True in your Studio project settings under UI Automation Classic.
FAQ 7: What are the prerequisites and best practices for using data-driven testing in UiPath?
•To use data-driven testing, you need to have Orchestrator version 2022.4 or higher. For effective use, ensure you debug and run data-driven
test cases exclusively from the Test Explorer panel. For more details on managing and executing test cases, visit the Working With Test
Explorer documentation. These data driven testcases can then published to Orchestrator and executed to run as unattended as test sets.
FAQ 8: How is Autopilot licensed and what are the usage limits?
•Autopilot actions are licensed based on usage. Each user on the Enterprise plan receives 600 actions per month, while other plans provide 5
actions per day. Actions reset monthly, and usage details are tracked through user license management. For more details, refer plan
breakdown
FAQ 9: How do I access Change Impact Analysis in the Heatmap?
•To access Change Impact Analysis: Open the Heatmap > Select "Analyze Transports" from the top-right menu. If you have Transport units'
licenses, the Transports view will open, allowing you to analyze the impact of changes. If not, you will only see an overviewofpreviously
analyzed transports.
FAQ 10: What conditions are required for performing Change Impact Analysis?
•To perform Change Impact Analysis, Test Manager must have a direct connection to your SAP instance. It supports SAP ECC, SAP
S/4HANA, and SAP EWM systems.

UiPath Data-Driven Testing Guide (Studio)
•Data-Driven Testing -https://docs.uipath.com/studio/standalone/2024.10/user-guide/data-driven-testing
•AI-generated Test Data -https://docs.uipath.com/studio/standalone/2024.10/user-guide/ai-generated-test-data
•Generate Synthetic Test Data Best Practices -https://docs.uipath.com/test-suite/automation-cloud/latest/user-guide/ai-
powered-test-automation-best-practices#generating-synthetic-test-data
SAP Heatmap & Change Impact Analysis
•About Heatmap -https://docs.uipath.com/test-suite/automation-cloud/latest/user-guide/heatmap
•SAP Test Manager outbound IPs -https://docs.uipath.com/test-suite/automation-cloud/latest/user-guide/sap---test-manager-
outbound-ips
•About Change Impact Analysis -https://docs.uipath.com/test-suite/automation-cloud/latest/user-guide/change-impact-analysis
•Setting up SAP –Test Manager Integration for Heatmap Generation -https://docs.uipath.com/test-suite/automation-
cloud/latest/user-guide/prerequisites-heatmap
•A decent video that explains SAP S/4HANA Transports https://www.youtube.com/watch?v=aMyREzMZjkY
Test Suite Autopilot Series –Zero to Hero Session 1 Recording
•https://community.uipath.com/events/details/uipath-dallas-texas-presents-uipath-autopilottm-for-testers-zero-to-hero-session-1/
Resources to check

Join a UiPath Chapter
•Dallas Chapter: https://community.uipath.com/dallas-texas/
Connect with us on LinkedIn
•Diana Gray: https://www.linkedin.com/in/diana-gray-mba/
•Naveen Chatlapalli: https://www.linkedin.com/in/nchatlapalli/
•Logesh Velu https://www.linkedin.com/in/logeshshunmugavelu/
•Arun Kumar Asokan: https://www.linkedin.com/in/arun-kumar-asokan-mba/
•Ganesh Chittaranjan : https://www.linkedin.com/in/chittharanjan/
Get Connected!

Thank You