NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

Python Testing Framework:
Robot Framework.
Pytest.
TestProject.
PyUnit (Unittest)
Nose2.
Behave.
Lettuce.
Testify.

Pytest is a testing framework based on python. It is mainly used to write API test cases.

In this framework first we have to write the code and run the scipt command ....
Create a file named test.py and add the below code to that file
import math

def test_sqrt():
num = 25
assert math.sqrt(num) == 5

def testsquare():
num = 7
assert 7*7 == 40

def tesequality():
assert 10 == 11

After run this file we have

test_square.py .F
============================================== FAILURES
==============================================
______________________________________________ testsquare
_____________________________________________
def testsquare():
num=7
> assert 7*7 == 40
E assert (7 * 7) == 40
test_square.py:9: AssertionError
================================= 1 failed, 1 passed in 0.06 seconds
=================================

That means firstly we have write the code and then test the API.
Before You Start Testing Payment Gateway:
– Gather required test data for dummy debit/credit information.
– Gather Payment Gateway type and all related information.
– Finalize Performance Testing parameters for testing Payment Gateway flow.
– Collect Payment Gateway error codes. It is useful when any error occurs during testing to make sure whether it is our Application’s fault or payment gateway related error.
Test Cases By Hosted Payment Gateway
Functional Test Scenarios for Payment Gateway:
1) User Data transmitted to the gateway must be set over a secured(HTTPS or other) channel.

2) Some application ask User to store Card information. In that case, system should store Card information in encrypted format.



3) Check for all mandatory fields validation. System should not go ahead with payment process if any data for any field is missing.

4) Test with Valid Card Number + Valid Expiry Date + Invalid CVV Number.

5) Test with Valid Card Number + Invalid Expiry Date + Valid CVV Number.

6) Test with Invalid Card Number + Valid Expiry Date + Valid CVV Number.

7) Test all Payment Options. Each payment option should trigger respective payment flow.

8) Test with multiple currency formats(if available).

9) Test with a Blocked Card Information.

10) Try to submit the Payment information after Session Timeout.

11) From Payment Gateway Confirmation page try to click on Back button of browser to check Session is still active or not.



12) Change Payment Language during Payment process.



13) Check the behavior when payment gateway stops responding to the request. Stop the process and verify if payment is debited or not.

14) Try to disconnect the internet connection while payment process is in progress.

15) Check after successful payment all necessary data retrieved at application or not.

16) Verify that End user gets a notification email upon successful payment.

17) Verify that End user gets a notification email with proper reason upon payment failure.

18) Some application provides confirmation through pop-up dialogues. Test this feature by keeping web browser pop-up on.

19) Test authorization receipt after successful payment. Verify all fields carefully.

20) Check if double payment is happening for any case.

21) Try to test with real time transactions by providing actual payment information. If not feasible, gather dummy debit/credit card information for the testing purpose.






Once see this:















     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.