<commit_before>---
layout: post
title: QA Internship Day 4 Create New Facebook Test Users with Graph API
---

## Objectives

Today, I'll need to further come out with test scripts for automating the ShopBack's login process with FB accounts

## Plan

1. First, create test users with graph API (not manually)
2. Check if I can login with my app via this test user!!!!!!!! (*)
3. Write the script if 2 is verified
   a. Automate test user creation while storing essential info (app id, secret, access token, login URL, User ID, email & password) in the scripts.
   b. Automate test user login on ShopBack. 
   c. Check if user is added in ShopBack's database
   d. Automate test user deletion with Graph API, to avoid reaching the 2000 test user limit.

(*) To achieve this, I may need to build a simple form with FB authorization, using MongoDB for storing users, and deploy on heroku site. Then I'll need to write an automatic test script for this simple site, and substitute my app info like ID, access token, app secret with those of ShopBack. Since a FB app-ID is required for FB login through [FB SDK for JS] (https://developers.facebook.com/docs/javascript/quickstart), I should be able to get these info.
<commit_msg>Update 2017-05-18-QA-Internship-Day4.md<commit_after>---
layout: post
title: QA Internship Day 4 - Test Users Graph API
---

## Objectives

Today, I'll need to further come out with test scripts for automating the ShopBack's login process with FB accounts

## Plan

1. First, create test users with graph API (not manually)
2. Check if I can login with my app via this test user!!!!!!!! (*)
3. Write the script if 2 is verified
   a. Automate test user creation while storing essential info (app id, secret, access token, login URL, User ID, email & password) in the scripts.
   b. Automate test user login on ShopBack. 
   c. Check if user is added in ShopBack's database
   d. Automate test user deletion with Graph API, to avoid reaching the 2000 test user limit.

(*) To achieve this, I may need to build a simple form with FB authorization, using MongoDB for storing users, and deploy on heroku site. Then I'll need to write an automatic test script for this simple site, and substitute my app info like ID, access token, app secret with those of ShopBack. Since a FB app-ID is required for FB login through [FB SDK for JS] (https://developers.facebook.com/docs/javascript/quickstart), I should be able to get these info.

{'fraction_non_alphanumeric': 0.06731946144430845, 'fraction_numerical': 0.011015911872705019, 'mean_word_length': 3.865079365079365, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5511658', 'n_tokens_mistral': 684, 'n_tokens_neox': 630, 'n_words': 393}