MobileAPI + CRM – using application related .xml files to build part of an automation framework
1. MobileAPI + CRM – using
application related .xml
files to build part of an
automation framework
TSIMAFEI AVILIN
JANUARY 30, 2016
2. • Tsimafei Avilin
• 9+ years in IT - 3 years in Functional Testing,
6+ years in Automation Testing
• Test automation optimization, Test automation
frameworks, Test Automation strategy
• Test Automation, Test Frameworks, Resource
Management, QTP, TestComplete, WebDriver, API
testing, .NET Automation, etc.
ABOUT ME
5. 5CONFIDENTIAL
CRM + Mobile example
CRM Mobile
• FetchXML is a proprietary query language that is used in Microsoft Dynamics CRM Online 2016 Update and Microsoft
Dynamics CRM 2016 (on-premises). It’s based on a schema that describes the capabilities of the language. The FetchXML
language supports similar query capabilities as query expressions. In addition, it’s used as a serialized form of query,
used to save a query as a user-owned saved view in the userquery entity and as an organization-owned saved view in
the savedquery entity. link
9. 9CONFIDENTIAL
Company object
Company object has many properties, how do you
decide which properties to use to:
- create fetchXML;
- parse response;
- Compare actual and expected data;
- How to store properties?
DB
HTML (response from mobile API)
21. 21CONFIDENTIAL
fetchXML files examples
You can check XML file contains information about
• search
• aggregate
• filtering/sorting
• whatever you have in xml to be under test…
22. 22CONFIDENTIAL
• NOT NEED TO THINK ABOUT
PROPERTIES CHANGES
• SIMPLE PARSING OF XML FILES
• SET OF PROPERTIES IS GENERATED ON
FLY
CONS PROS
PROS AND CONS
• DIFFICULT TO UNDERSTAND THIS
APPROACH
• CROSS DOMAIN ISSUES
• DO YOU HAVE SOMETHING TO ADD?..
You even can control set of properties in xml file by creating kind of ‘template’ set
And hence improve performance by removing unnecessary properties from dev. xml;