Squashed commit of the following:

commit c49c927790b7fdc480636b40bcad732cbc13abe8
Merge: 0efda1f 4bf46aa
Author: 夜鹰 <17kungfuboy@gmail.com>
Date:   Mon Feb 7 00:08:53 2022 +0800

    Merge branch 'fix-bug-2022-01-25' of github.com:eolinker/eoapi into fix-bug-2022-01-25

commit 0efda1fc58279f5814122ba8a3aecc542a181811
Author: 夜鹰 <17kungfuboy@gmail.com>
Date:   Mon Feb 7 00:04:47 2022 +0800

    add e2e test case

commit 4cecdbbfa6aa5a5b40601011678679c37aa480b9
Author: kungfuboy <17kungfuboy@gmail.com>
Date:   Sun Feb 6 22:37:13 2022 +0800

    change test unit

commit 292fe93b2d33b08703b4a149617e8bea570cdaee
Author: kungfuboy <17kungfuboy@gmail.com>
Date:   Wed Jan 26 21:48:07 2022 +0800

    add file about test

commit 62f4870a577996e3e9bfd093fcf98a76b7414db8
Author: 夜鹰 <17kungfuboy@gmail.com>
Date:   Wed Jan 26 16:50:52 2022 +0800

    update

commit 083ebc953e037b804d4c1d2e39afa8d463613a3b
Author: kungfuboy <17kungfuboy@gmail.com>
Date:   Tue Jan 25 22:07:03 2022 +0800

    add log

commit afc3a5f72994b095d7f62a3bcc3762f6cc7b5129
Author: kungfuboy <17kungfuboy@gmail.com>
Date:   Sun Jan 30 22:38:40 2022 +0800

    add e2e test of add_api

commit 5fed3394a5d2ac452beb9a19acb8bb936bcb8dfb
Author: kungfuboy <17kungfuboy@gmail.com>
Date:   Wed Jan 26 21:48:07 2022 +0800

    add file about test

commit f7f1c7e017450a1d04f5b4f94da8980b88e08b13
Author: 夜鹰 <17kungfuboy@gmail.com>
Date:   Wed Jan 26 16:50:52 2022 +0800

    update

commit 3f11b61a180186f536c163da9c830b75f26e1478
Author: kungfuboy <17kungfuboy@gmail.com>
Date:   Tue Jan 25 22:07:03 2022 +0800

    add log

commit 4bf46aad777464a87800a0db0f55c99cb4ad8fdd
Author: 夜鹰 <17kungfuboy@gmail.com>
Date:   Mon Feb 7 00:04:47 2022 +0800

    add e2e test case

commit aab9ee73b013f7dc84ffd85ee030162c561907de
Author: kungfuboy <17kungfuboy@gmail.com>
Date:   Sun Feb 6 22:37:13 2022 +0800

    change test unit

commit e0528e45274c3d00884a002a9115fe0a41c4e2c0
Merge: ee0ca9f cabde42
Author: kungfuboy <17kungfuboy@gmail.com>
Date:   Thu Feb 3 21:13:16 2022 +0800

    Merge branch 'fix-bug-2022-01-25' of github.com:eolinker/eoapi into fix-bug-2022-01-25

commit ee0ca9fe6cce56fb2984a2e138a25a6811395f34
Author: kungfuboy <17kungfuboy@gmail.com>
Date:   Sun Jan 30 22:38:40 2022 +0800

    add e2e test of add_api

commit 680f9233fc7d9d605516e4f46765909e50fae5db
Author: kungfuboy <17kungfuboy@gmail.com>
Date:   Wed Jan 26 21:48:07 2022 +0800

    add file about test

commit 1ca2950d9438eb031783418f736fcf82846e72c3
Author: 夜鹰 <17kungfuboy@gmail.com>
Date:   Wed Jan 26 16:50:52 2022 +0800

    update

commit 1b1c2fd297c5f7baeeebb0e3623953af621726d1
Author: kungfuboy <17kungfuboy@gmail.com>
Date:   Tue Jan 25 22:07:03 2022 +0800

    add log

commit cabde42c38d48a45d5518e5c2c8aed28ba348a5d
Author: kungfuboy <17kungfuboy@gmail.com>
Date:   Wed Jan 26 21:48:07 2022 +0800

    add file about test

commit bca80271a6e335e830001b8525abbbab9d2822e2
Author: 夜鹰 <17kungfuboy@gmail.com>
Date:   Wed Jan 26 16:50:52 2022 +0800

    update

commit 1ffe93f421e1404093e6bb9ba76de663d063c923
Author: kungfuboy <17kungfuboy@gmail.com>
Date:   Tue Jan 25 22:07:03 2022 +0800

    add log
This commit is contained in:
夜鹰 2022-02-07 00:09:40 +08:00
parent c543108340
commit 9aae83f0d9
8 changed files with 64 additions and 3156 deletions

2
.gitignore vendored
View File

@ -43,7 +43,7 @@ testem.log
/typings
# e2e
/e2e/*.test.js
/e2e/test
!/e2e/protractor.conf.js
/e2e/*.map
/e2e/tracing

View File

@ -1,6 +1,6 @@
=== Env
::: open_env_modal {
::: open_modal {
goto 'http://localhost:4200'
@ -12,9 +12,17 @@ sel -> '管理环境'
wait 800
}
::: find_new_line {
find:
[label '参数名'] [label '说明'] [label '示例']
[input '']=pname [input '']=pdesc [input '']=pexample
capture
}
--- add new Env
--- open_env_modal
--- open_modal
find:
[label '环境名称']
@ -36,6 +44,11 @@ wait
cancel -> click
find:
[select 'jspath:body > eo-root > eo-pages > div > div > eo-api > nz-layout > nz-layout > nz-content > div > div.tabs-bar.f_row > div > eo-env > nz-select > nz-select-top-control > nz-select-search > input']=sel
wait
sel -> '环境名称A'
wait
@ -44,9 +57,9 @@ find:
[label 'http://www.youtube.com'] = url
=== Add API
=== API
--- add new api
::: create_get_api {
goto 'http://localhost:4200'
@ -70,4 +83,42 @@ save -> click
find:
[input] [img] [label 'API']=btn [img]
[label '新Get接口']=target
}
--- add get api
--- create_get_api
--- edit page
--- create_get_api
find:
[label 'GET'] [label '新Get接口']=target
target -> click
find:
[label '文档'] [label '编辑']=edit [label '测试']
edit -> click
--- find_new_line
pname -> 'jumpfrom'
pexample -> 'weibocom'
--- find_new_line
pname -> 'type'
pexample -> 'uid'
--- find_new_line
pname -> 'value'
pexample -> '7725367947'
--- find_new_line
pname -> 'containerid'
pexample -> '1076037725367947'
find:
[button '保存']=save
save -> click
capture

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

View File

@ -1,24 +0,0 @@
goto 'http://localhost:4200'
find:
[input] [img] [label 'API']=btn [img]
btn -> click
find:
[button '保存']=save
[label 'API Path']
[select 'HTTP']=protocol [select 'POST']=type [input '/']=url
[label '分组 / API 名称']
[label '根目录'] [input]=name
type -> 'GET'
name -> '新Get接口'
url -> 'https://m.weibo.cn/api/container/getIndex'
save -> click
find:
[input] [img] [label 'API']=btn [img]
[label '新Get接口']=target

File diff suppressed because it is too large Load Diff

View File

@ -28,6 +28,11 @@ wait
cancel -> click
find:
[select 'jspath:body > eo-root > eo-pages > div > div > eo-api > nz-layout > nz-layout > nz-content > div > div.tabs-bar.f_row > div > eo-env > nz-select > nz-select-top-control > nz-select-search > input']=sel
wait
sel -> '环境名称A'
wait
@ -35,4 +40,7 @@ wait
find:
[label 'http://www.youtube.com'] = url
<<<<<<< HEAD
=======
>>>>>>> change test unit

File diff suppressed because it is too large Load Diff