PROMO JULIO en CVOSOFT United States Of America: 💎Calidad, 🔥Bonificaciones, 🥶Precios Congelados y MÁS!

 X 

✒️SAP Fiori La configuración del test unitario y las herramientas de debugging

SAP Fiori La configuración del test unitario y las herramientas de debugging

SAP Fiori La configuración del test unitario y las herramientas de debugging

1 | Execution of Unit Testing from BAS

Accessing SAP Business Application Studio (BAS) marks the initial step towards conducting comprehensive unit testing. BAS serves as an integrated development environment tailored specifically for SAP applications. Developers log into BAS to leverage its suite of tools and functionalities designed to streamline the development, testing, and deployment processes of SAP applications.

  • Access to SAP BAS:
    • Access SAP BAS to perform unit tests in the development environment.
  • Execution Configuration:
    • Create an execution configuration by clicking the "Run Configuration" button.
    • Select the HTML5 executable file and the SAPUI5 version.
  • Dependencies:
    • Display available dependencies, including service dependencies and data sources.
  • Application Binding:
    • If connection to a backend system is needed, bind the application to the corresponding destination.
  • Running the Test:
    • Once dependencies are correctly linked, execute the application test by clicking the run button.
  • Execution Script:
    • Find the execution script in the "launch.json" file, accessed by right-clicking on the folder.
  • Test Result:
    • When running the project, the result is displayed, which in this case could be a list of sales orders.
  • Application Startup Steps:
    • Describes the steps executed when starting the application, including loading resources, creating models and controllers, and evaluating view bindings.
  • Stopping Execution:
    • If you want to stop execution, go to debug mode and click the stop button.

2 | Google Chrome DevTools

Google Chrome's development tools, known as DevTools. These tools are useful for web development and debugging within the browser. The panels included in DevTools are:

  • Elements
  • Connectivity
  • Sources
  • Timeline
  • Profiles
  • Resources
  • Audits
  • Console

Accessing DevTools:

  • Open DevTools: Use F12 or Ctrl+Shift+I to open the tools.
  • Inspect and Edit: Modify HTML and CSS directly in the browser to see changes in real-time.

Key Panels in DevTools:

  • Elements: Examine and edit the HTML structure.
  • Console: View messages and run JavaScript code for debugging.
  • Sources: Debug JavaScript by setting breakpoints and stepping through code.
  • Network: Monitor network requests to understand how resources are loaded.

3 | Activation of Application Analysis System for SAPUI5

Activation of the application analysis system for SAPUI5 is a specific and useful tool that facilitates analysis of a running application. It provides information on the version of SAPUI5 libraries and determines which components can be used. Other tools accessible include:

  • SAPUI5 Diagnostics
  • Support Assistant

SAPUI5 Diagnostics:

  • Displays technical information and allows enabling debug mode to view original code and application comments.

Manifest.json:

  • Contains the global configuration of the application.

Support Assistant:

  • Provides validation rules and tips for fixing errors, displaying analysis in panels that include the object tree, detected errors, and explanations of the problem.

4 | Google Chrome Extensions

UI5 Inspector:

  • A free, open-source extension installed in Chrome's DevTools panel. It allows analyzing and examining UI5 code.

JSONView:

  • This extension displays JSON content in a structured format and allows expanding and collapsing hierarchy elements.

XML Tree:

  • Similar to JSONView, this extension formats XML content in a structured way and offers the ability to expand and collapse hierarchical elements.

5 | Analysis of Views and Controllers

When reviewing an application's code, most of the time is spent examining views and controllers. Views are usually in XML format, while controllers are written in JavaScript.

Chrome DevTools Sources Panel:

  • Allows viewing source code of views and controllers.
  • To view XML view definitions, filter by "view.xml" in the panel.

Additional Functionality of the Source Panel:

  • Offers features like setting breakpoints, examining application state, and making temporary changes to source code.
  • Mentions the use of the console panel, which displays entered messages and obtained responses.

6 | Placing a Breakpoint

There are various options for setting breakpoints in the browser debugger, such as clicking on the line number or right-clicking to disable or edit existing breakpoints.

Setting Breakpoints:

  • Click Line Number: Click on the line number in the source code to set a breakpoint.
  • Use "debugger" Statement: Insert this statement in your code to pause execution.

Debug Mode:

  • Access Debug Mode: Use F12 or Ctrl+Shift+I and go to the Sources tab.
  • Skip Breakpoints: Press F8 to continue execution past a breakpoint.

Search and Verify Code:

  • Find Functions: Use Ctrl+P to search for functions and set breakpoints to examine their parameters and behavior.

7 | OData Models

Following concepts related to OData models:

  • OData Model: Refers to a runtime instance of an OData model that retrieves a metadata document and provides a mechanism to access related resources.
  • $metadata Resource: A specific resource in OData containing information about the structure and metadata of the service. It can be viewed in the network panel.
  • Service Call: Refers to the request made to the OData service with selected data on the screen.
  • Code Debugging: writing debugging code in the console, such as using the "oEvent.getParameter("listItem")" method to get the selected item and "oEvent.getParameter("listItem").getBindingContext().getProperty("SalesOrderID")" to get a specific value.
  • Debug Level Logs: View and filter debug logs to find information, warnings, and errors.

8 | Emulating UI5 and Fiori Applications on Mobile Devices

UI5 and Fiori applications can be emulated to appear as if they are running on mobile devices using the "Mobile emulation in device mode" tool in Google Chrome DevTools.

Preparation for Mobile Devices:

  • It's important to consider mobile devices when building SAPUI5 applications or extending existing Fiori applications.
  • Google Chrome offers functionality to check how a website or application works on a mobile device through simple steps.

Emulation Tool Features:

  • The emulation tool allows simulating the response of Fiori extensions and SAPUI5 applications on a variety of smartphones and tablets.
  • It allows changes in device orientation, touch emulation, and limited network conditions such as 3G, LTE, 4G, wireless, and offline mode.

 

 

 


Sobre el autor

Publicación académica de Jaime Eduardo Gomez Arango, en su ámbito de estudios para la Carrera Consultor en SAP Fiori.

SAP Expert


Jaime Eduardo Gomez Arango

Profesión: Ingeniero de Sistemas y Computación - España - Legajo: SW34C

✒️Autor de: 149 Publicaciones Académicas

🎓Cursando Actualmente: Consultor en SAP Fiori

🎓Egresado de los módulos:

Disponibilidad Laboral: FullTime

Presentación:

Ingeniero de sistemas y computación con 8 años de experiencia el desarrollo frontend & backend (react/node) y en cloud (aws), actualmente desarrollando habilidades en sap btp, ui5, abap y fiori.

Certificación Académica de Jaime Gomez

✒️+Comunidad Académica CVOSOFT

Continúe aprendiendo sobre el tema "La configuración del test unitario y las herramientas de debugging" de la mano de nuestros alumnos.

SAP Expert


1 | Execution of Unit Testing from BAS Accessing SAP Business Application Studio (BAS) marks the initial step towards conducting comprehensive unit testing. BAS serves as an integrated development environment tailored specifically for SAP applications. Developers log into BAS to leverage its suite of tools and functionalities designed to streamline the development, testing, and deployment processes of SAP applications. Access to SAP BAS: Access SAP BAS to perform unit tests in the development environment. Execution Configuration: Create an execution configuration by clicking the "Run Configuration" button. Select the HTML5 executable file and the SAPUI5 version. Dependencies:...

Acceder a esta publicación

Creado y Compartido por: Jaime Eduardo Gomez Arango / Disponibilidad Laboral: FullTime + Carta Presentación

*** CVOSOFT - Nuestros Alumnos - Nuestro Mayor Orgullo como Academia ***

SAP Master


Las herramientas de desarrollo de Google Chrome La herramienta de desarrollo de Google Chrome, también conocida como DevTools es un set de herramientas útiles para desarrollo web y herramientas para debug dentro de Chrome. Esta incluye paneles para elementos, conectividad, fuentes, línea de tiempo, perfiles, recursos, auditorias y consolas. Las herramientas de desarrollo de los navegadores actuales nos permiten establecer puntos de interrupción de depuración de JavaScript. Uno de los usos más comunes para esta herramienta es examinar el HTML y el CSS de un elemento de una página web que esté abierta en Google Chrome, esto se logra al hacer click en tabla del elemento en la barra de navegación...

Acceder a esta publicación

Creado y Compartido por: Gerber Geovanni Lopez Hernandez / Disponibilidad Laboral: FullTime

*** CVOSOFT - Nuestros Alumnos - Nuestro Mayor Orgullo como Academia ***

SAP SemiSenior

Desarrollo en Google Chrome Las DevTools de Google Chrome son herramientas que nos brindan apoyo para la construccion de aplicaciones web en su interfaz de grafica de usuairo. A traves de diversos paneles, fuentes, para elementos, conectividad, perfiles, recursos y consolas se nos brinda informacion sobre el comportamiento de la aplicacion. Es posible en Google Chrome insertar puntos de depuración para JavaScript. El uso más comun para esta herramienta es examinar el HTML y el CSS de un elemento de una página web que esté abierta en Google Chrome, esto se logra al hacer click en tabla del elemento en la barra de navegación de las herramientas de desarrollo o sea las Dev Tools. Hay un par de otras herramientas...

Acceder a esta publicación

Creado y Compartido por: Cristian Cash

*** CVOSOFT - Nuestros Alumnos - Nuestro Mayor Orgullo como Academia ***

SAP Senior

La realización del test unitario desde el BAS El texto describe el proceso de realizar pruebas unitarias en el entorno de desarrollo utilizando SAP BAS (SAP Business Application Studio). A continuación se resumen los conceptos principales: Acceso al SAP BAS: Se ingresa al SAP BAS para realizar las pruebas unitarias en el entorno de desarrollo. Configuración de ejecución: Se crea una configuración de ejecución haciendo clic en el botón de "Run Configuración". Se selecciona el archivo ejecutable HTML5 y la versión de SAPUI5. Dependencias: Se muestran las dependencias disponibles, incluyendo dependencias de servicio y fuentes de datos. Vinculación de la aplicación:...

Acceder a esta publicación

Creado y Compartido por: Nilson Parra Martinez / Disponibilidad Laboral: PartTime

*** CVOSOFT - Nuestros Alumnos - Nuestro Mayor Orgullo como Academia ***

SAP Senior

DOM como javascript lee el html create configuration launch.json herramientas de desarrollo de google chrome Devtools elementos, conectividad, fuentes, linea de tiempo, perfiles, recursos, auditorias y consolas desactivar caché atajo para cambiar paneles ctrl 1-9 elementos consola fuentes red linea de tiempo perfiles aplicacion seguridad auditorias control alt shift p control alt shift s abrir diagnostico json view xml tree panel de código panel de consola poner un breakpoint oEvent.getParameter("listitem") oEvent.getParameter("listitem").getBindingContext().getProperty("salesorderid") emulador devtools

Acceder a esta publicación

Creado y Compartido por: Enrique Gomez

 


 

👌Genial!, estos fueron los últimos artículos sobre más de 79.000 publicaciones académicas abiertas, libres y gratuitas compartidas con la comunidad, para acceder a ellas le dejamos el enlace a CVOPEN ACADEMY.

Buscador de Publicaciones:

 


 

No sea Juan... Solo podrá llegar alto si realiza su formación con los mejores!