We want to consume a GET service and parsing an JSON response using Ajax and JQuery, so here is what we need.
JSON example:
{ uuid: "7d6bc74b9a33257e29bb0206e2b00f434deb51a0", nombre: "Jose Luis", apellidoPaterno: "De la Cruz", apellidoMaterno: "Morales", rfc: "rfc", fechaNacimiento: 1445640529000, 18 more… } Let’s imagine this scenario: when user type rfc in a form and click on send button, we consume our service retrieve an JSON and fill some input text fields in a form, so our html file looks like this:
[Read More]
UX Development
In this section I will post all referent about UX development such as Javascript, CSS and HTML5 specs.
- Parsing JSON with ajax
- Inquirer & Callback
- Mongoose
- Templating with Swig & Express
- WebdriverIO Getting Started
- Applitools Getting Started
- WebdriverIO Geolocation
- WebdriverIO with Cucumber Getting Started
- WebdriverIO Lighthouse
- Selenium Cucumber And TestNG
- Cypress Getting Started
- Cypress Applitools Integration
- Playwright Getting Started
- Playwright Applitools Integration
- Playwright Reports Deployment
Firebase Remote Config
Firebase Remote Config is a Google cloud service that lets you change the behavior of your app without rebuild, it gives you the ability to define key/value parameters using Google Firebase Console, then in your app you can fetch those values and use them as you need. In this technical post we will cover the basic configuration in an Android application in order to change the REST API to override environment parameters such as QA and Production.
[Read More]
Appium Cucumber and Junit5
Appium is an open-source tool for automating native, mobile web, and hybrid applications on both iOS and Android. In this post we will review how to do feature testing using Appium, Cucumber and Junit5. NOTE: If you want to know how to setup Appium, please refer my previous post: Appium Automation
First, create a new project in android studio with no Activity, default options and set the following dependencies in build.
[Read More]
Appium Automation
Appium is an open-source tool for automating native, mobile web, and hybrid applications on both iOS and Android. Appium supports app automation across a variety of platforms, like iOS, Android, and Windows. Each platform is supported by one or more “drivers”, which know how to automate that particular platform.
Appium Philosophy
Appium was designed to meet mobile automation needs according to a philosophy outlined by the following four tenets:
You shouldn’t have to recompile your app or modify it in any way in order to automate it.
[Read More]
Google Sign-In for Android
This time I will show you how to integrate Google Sing-In to an Android application. First you need to add Google play services SDK. In Android Studio select: Tools > Android > SDK Manager, then in SDK Tools tab check the Google Play Services checkbox button.
Create a new project in android studio with an empty Activity, default options and set the following dependencies in build.gradle
apply plugin: 'com.android.application' android { compileSdkVersion 25 buildToolsVersion "26.
[Read More]
Material Design Card View
Material design is used to create visual, motion, and interaction design across Android devices. Go Here for more information. This time I will show you how to create card views and how to respond to user event.
Setup Create a new project in android studio with an empty Activity, default options and set the following dependencies in build.gradle
apply plugin: 'com.android.application' android { compileSdkVersion 25 buildToolsVersion "26.0.0" defaultConfig { applicationId "dem.
[Read More]
Material Design Creating Lists
Material design is used to create visual, motion, and interaction design across Android devices. Go Here for more information. This time I will show you how to create lists and how to respond to user event.
Setup Create a new project in android studio with an empty Activity, default options and set the following dependencies in build.gradle
apply plugin: 'com.android.application' android { compileSdkVersion 25 buildToolsVersion "26.0.0" defaultConfig { applicationId "com.jos.dem.list" minSdkVersion 21 targetSdkVersion 25 versionCode 1 versionName "1.
[Read More]
REST Calls using Retrofit
Retrofit is a HTTP client for Android and Java, it turns your HTTP API into a Java interface. This time I will show you how to create a basic project using Retrofit.
Setup Create a new project in android studio with no Activity, default options and set the following dependencies in build.gradle.kts
implementation("com.squareup.retrofit2:retrofit:$retrofitVersion") implementation("com.squareup.retrofit2:converter-gson:$retrofitVersion") Here we are using Gson converter to transform the JSON responses to the model classes.
In this example we are going to use a Fruitypedia API to get smoothie categories: https://fruitypedia.
[Read More]
Android
Android is the most popular mobile operating system in the world, also Android is growing and spreading it lands on more devices and in more people’s awaiting hands.
With every mobile comes version and a numerical code a name that’s themed between sweets and desserts, running in alphabetical order.
Here you can find some important topics regarding to Android development: