zoukankan      html  css  js  c++  java
  • 5-14 影片模块整体测试

    提前启动这两个服务


    测试

    首先是演员列表:

    http://localhost:8401/films/actors

    分页的参数是可传,可不传的


    影片新增



    直接把这个例子拷贝过来




    自己测试发现一个错误

    把json复制过来,直接添加影片。返回一个错误。

    {
        "timestamp": "2020-04-24T04:34:01.019+0000",
        "status": 500,
        "error": "Internal Server Error",
        "message": "Text '2018-07-05' could not be parsed at index 10",
        "path": "/films/film:add"
    }

    从message的错误来看局势filmTime这个字段做日期转换的时候报错。日期在做转换的时候 加上时分秒。

    然后就添加成功了。

    {
        "code": 200,
        "message": "",
        "data": null
    }

    浏览影片

    http://localhost:8401/films



    get请求也不需要分页

    自己遇到的问题,注意事项:

    查询电影详情


    报了个错误。

    少写了一个条件


    重启服务测试





    结束

  • 相关阅读:
    golang gc
    set password to qcow2
    golang reflect struct
    Mac 自启动管理
    shell exec
    shell 管道 与 mkfifo
    shell 读取文件
    shell 函数
    shell read 命令
    ubuntu 快速安装和设置 mysql
  • 原文地址:https://www.cnblogs.com/wangjunwei/p/12725958.html
Copyright © 2011-2022 走看看