Giter Site home page Giter Site logo

charles's Introduction

Charles

Charles HomeWork

Ex_0: Сфокусироваться на ниже перечисленных запросах

Protocol: http IP: 162.55.220.72 Port: 5005

Ex_1: Method: GET EndPoint: /get_method request url params: name: str age: int

response: [ “Str”, “Str” ]

Task: Сделать и в Rewrite, и в BreakPoint (можно отключить чтобы не стопило на каждом запросе) ⁃ Подменить url в Charles чтобы в запросе ушло имя которые вы вписали в Postman, а вернулось то, которое вы подставили в Charles.

==================

Ex_2: Method: POST EndPoint: /user_info_3 request form data: name: str age: int salary: int

response: {'name': name, 'age': age, 'salary': salary, 'family': {'children': [['Alex', 24], ['Kate', 12]], 'u_salary_1_5_year': salary * 4}}

Task: Сделать и в Rewrite, и в BreakPoint (можно отключить чтобы не стопило на каждом запросе) ⁃ Подменить body в Charles так чтобы в запросе ушла salary которую вы вписали в Postman, а в u_salary_1_5_year цифра вернулась меньше оригинальной из запроса.

==================

Ex_3: Method: GET EndPoint: /object_info_1 request url params: name: str age: int weight: int

response: {'name': name, 'age': age, 'daily_food': weight * 0.012, 'daily_sleep': weight * 2.5}

Task: Сделать и в Rewrite, и в BreakPoint (можно отключить чтобы не стопило на каждом запросе) ⁃ Подменить параметры запроса в Charles так, чтобы в Postman пришел ответ где другое name, daily_food > weight из запроса, а daily_sleep < weight из запроса.

==================

Ex_4: Method: GET EndPoint: /object_info_3 request url params: name: str age: int salary: int

response: {'name': name, 'age': age, 'salary': salary, 'family': {'children': [['Alex', 24], ['Kate', 12]], 'pets': {'cat':{'name':'Sunny', 'age': 3}, 'dog':{'name':'Luky', 'age': 4}}, 'u_salary_1_5_year': salary * 4} }

Task: Сделать и в Rewrite, и в BreakPoint (можно отключить чтобы не стопило на каждом запросе)

  • Сделать через Charles так, чтобы сервер вернул 500 код.
  • Сделать через Charles так, чтобы сервер вернул 405 код.

==================

Ex_5: Method: GET EndPoint: /object_info_4 request url params: name: str age: int salary: int

response: {'name': name, 'age': int(age), 'salary': [salary, str(salary * 2), str(salary * 3)]}

Task: Сделать и в Rewrite, и в BreakPoint (можно отключить чтобы не стопило на каждом запросе) ⁃ Сделать через Charles так, чтобы сервер вернул 405 ошибку. ⁃ Подменить salary в request ⁃ Подменить (salary * 2) в response

==================

Ex_6: Method: POST EndPoint: /user_info_2 request form data: name: str age: int salary: int

response: {'start_qa_salary': salary, 'qa_salary_after_6_months': salary * 2, 'qa_salary_after_12_months': salary * 2.7, 'qa_salary_after_1.5_year': salary * 3.3, 'qa_salary_after_3.5_years': salary * 3.8, 'person': {'u_name': [user_name, salary, age], 'u_age': age, 'u_salary_5_years': salary * 4.2} }

Task: Сделать и в Rewrite, и в BreakPoint (можно отключить чтобы не стопило на каждом запросе) ⁃ Сделать через Charles так, чтобы в Postman вернулся ответ, в котором qa_salary_after_1.5_year переименовано в qa_salary_after_1.5_month ⁃ Сделать так чтобы qa_salary_after_3.5_years было меньше qa_salary_after_12_months в response

Все настройки Charles выгрузить в GitHub

charles's People

Contributors

bialywilk24 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.