Posts

Unified Payments Interface (UPI) : Detail Analysis

Image
India's payment system has undergone significant advancements in recent years, driven by digital innovation, regulatory support, and a growing emphasis on financial inclusion. The country has become a global leader in digital payments. Here’s an overview of the latest advancements and the architecture behind them: 1. Unified Payments Interface (UPI) Introduction: UPI is a real-time payment system developed by the National Payments Corporation of India (NPCI) that facilitates inter-bank transactions. It allows users to transfer money between bank accounts using a mobile device, with just a Virtual Payment Address (VPA). Architecture: Client Layer: The client-side includes UPI-enabled mobile apps like Google Pay, PhonePe, Paytm, and others. Users interact through these apps, which provide interfaces for initiating transactions. Middleware: UPI acts as the middleware that connects multiple banks, providing interoperability and ensuring that transactions are processed in real time. Ban...

Postman Test Automation with Teamcity

Image
 Teamcity Architecture: Teamcity Installation : Follow this Page for Teamcity Installation. https://www.jetbrains.com/help/teamcity/quick-setup-guide.html Step 1: Check if agent is present or not  Administration > Create Project >Manually (Name ,Project_id)>Create Step 2: Build configurations > Create Build configuration >Manually(Name,Build configuration_id) >create Step 3: New VCS Report  If we are using github repo to pull code we have to this setup Repository url username password  >  Create Step 4: Go to Build Steps > Add build step>command line >step name ,Execute step , Custom script :  node --version                            npm --version                                  newman --version Step 5: Add another build steps (Build config>build steps) ...

Postman Automation with Newman

Image
 Introduction Newman:  The tool that allows us to make the bridge between the Postman App and any CI/CD server is called: Newman. Newman is the CLI companion of Postman,and it can execute Postman collections (as files or from links). Newman Installation: Prerequisite  : Node.js (Java script Run time environment) Link to download :  https://nodejs.org/en/download/package-manager/ > node --version to check Node.js is downloaded or not  To install Newman : https://www.npmjs.com/package/newman >npm install -g newman >newman --version if getting error as :  "File C:\Users\xyzz\AppData\Roaming\npm\newman.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. At line:1 char:1 + newman --version + ~~~~~~     + CategoryInfo          : SecurityError: (:) [], PSSecurityException     + FullyQua...

Postman Test Automation with Jenkins

 Install Docker  Install jenkins  install postman cli install newman Open Jenkins >install suggested plugins >create admin user  New item >name>freestyle job >Build steps >execute shell >postman --version >postman login --with-api-key {{postman-api-key-here}} >postman collection run 17978790-88a0da8f-3459-4f51-85ec-b4737418a1 //newman --version >save Run ctrl+c : to exit Managing secrets in Jenkins  Manage Jenkins >Credentials>System>Global Credentials>Postman Api Key  Using Postman CLI in Jenkins with Jenkins File New item > Pipeline >ok Go to pipeline configuration  Go to postman >Run collection >Automate Run via CLI>Run on CI/CD >Configuration command >copy configuration from postman (that can be used as script in pipeline) Go back to jenkins pipeline>paste the script To define variable  environment{ POSTMAN_API_KEY = credentials("postman-api-key") } Using Newman in jenkins (Free...

Designing API With Postman

Image
API Development Environment   Step1: Select API in postman and give api name for ex :Test Api Step 2:Go to definition and  select Author From Scratch  Use Schema : openapi: 3.0.0 info:   title: Cars API   version: 1.0.0 paths:   /cars:     get:       summary: Get a list of cars       description: Retrieve a list of cars from the database.       responses:         '200':           description: Successful response           content:             application/json:               example:                 cars:                   - id: 1                     make: Toyota                     mo...

GraphQL : Postman

Image
 What is GraphQL ? It is a query language for API  SOAP :XML RESTful:JSON GraphQL:JSON Each address represent resource in case of SOAP API  /users/john it will return all details associated with this resource Incase of RESTful api it is focused on resource based so very type of data to extract we can use different request. /users/john/address /users/john/bankaccount GraphQL :Query based approach to fetch data only one request needed to fetch needed data . Example :  query {   cars {     id     make     model     year   } } The query is requesting information about cars. Within the cars field, the query is asking for the id, make, model, and year of each car

GIT-Version Control Guide

Github :Central library (Repository) to host your code . GIT >Write commands >Github  1.Tell Git who you are  configure author name and email to be used with our commits . >git config --global user.name "xyz" >git config --global user.email "xyz@gmail.com" create some folder and put some file inside it generally your project folder . first go to that folder using cd command  >git init  this will create one .git extension file(hidden file) in that folder  you have a code  > Initialize It as Git Repositories (git init ) Staging >commit >publish to Github. For Staging : >git add *  :to add all file to staging  >git add <filename> :to add specific file to staging >git status  : to check which all file are added to staging For Commit : Commit will always take file from staging so we will always do commit after staging . >git commit -m "my first commit " connect to a remote repository  we need to conne...