Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oto
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
龚小红
oto
Commits
21684bda
Commit
21684bda
authored
Mar 09, 2023
by
龚小红
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Feature/formSubmit' into 'master'
1.增加客户资料配置的测试用例 See merge request
!77
parents
caef7805
1deb00be
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
355 additions
and
11 deletions
+355
-11
Answer.java
src/test/java/com/oto/bean/Answer.java
+14
-0
FormQuestion.java
src/test/java/com/oto/bean/FormQuestion.java
+29
-0
GroupData.java
src/test/java/com/oto/bean/GroupData.java
+11
-0
Option.java
src/test/java/com/oto/bean/Option.java
+18
-0
QuestionParam.java
src/test/java/com/oto/bean/QuestionParam.java
+15
-0
FormSubmit.java
src/test/java/com/oto/cases/otoseller/FormSubmit.java
+237
-0
Phone.java
src/test/java/com/oto/cases/otoseller/Phone.java
+0
-6
BasicConfig.java
src/test/java/com/oto/config/BasicConfig.java
+10
-0
BaseUtils.java
src/test/java/com/oto/utils/BaseUtils.java
+10
-0
workTestNG.xml
src/test/workTestNG.xml
+11
-5
No files found.
src/test/java/com/oto/bean/Answer.java
0 → 100644
View file @
21684bda
package
com
.
oto
.
bean
;
import
lombok.Data
;
@Data
public
class
Answer
{
public
String
code
;
public
String
text
;
public
Answer
(
String
code
,
String
text
)
{
this
.
code
=
code
;
this
.
text
=
text
;
}
}
src/test/java/com/oto/bean/FormQuestion.java
0 → 100644
View file @
21684bda
package
com
.
oto
.
bean
;
import
lombok.Data
;
import
java.util.ArrayList
;
@Data
public
class
FormQuestion
{
public
int
groupId
;
public
int
id
;
public
String
code
;
public
String
type
;
public
String
title
;
public
Object
date
;
public
Object
multi
;
public
ArrayList
<
Option
>
options
;
public
ArrayList
<
Answer
>
answers
;
public
FormQuestion
(
int
groupId
,
int
id
,
String
code
,
String
type
,
String
title
,
Object
date
,
Object
multi
,
ArrayList
<
Option
>
options
,
ArrayList
<
Answer
>
answers
)
{
this
.
groupId
=
groupId
;
this
.
id
=
id
;
this
.
code
=
code
;
this
.
type
=
type
;
this
.
title
=
title
;
this
.
date
=
date
;
this
.
multi
=
multi
;
this
.
options
=
options
;
this
.
answers
=
answers
;
}
}
src/test/java/com/oto/bean/GroupData.java
0 → 100644
View file @
21684bda
package
com
.
oto
.
bean
;
import
lombok.Data
;
import
java.util.ArrayList
;
@Data
public
class
GroupData
{
public
int
id
;
public
String
title
;
public
ArrayList
<
FormQuestion
>
formQuestions
;
}
src/test/java/com/oto/bean/Option.java
0 → 100644
View file @
21684bda
package
com
.
oto
.
bean
;
import
lombok.Data
;
@Data
public
class
Option
{
public
int
questionId
;
public
String
code
;
public
String
type
;
public
String
title
;
public
Option
(
int
questionId
,
String
code
,
String
type
,
String
title
)
{
this
.
questionId
=
questionId
;
this
.
code
=
code
;
this
.
type
=
type
;
this
.
title
=
title
;
}
}
src/test/java/com/oto/bean/QuestionParam.java
0 → 100644
View file @
21684bda
package
com
.
oto
.
bean
;
import
lombok.Data
;
import
java.util.ArrayList
;
@Data
public
class
QuestionParam
{
public
int
id
;
public
ArrayList
answers
;
public
QuestionParam
(
int
id
,
ArrayList
answers
)
{
this
.
id
=
id
;
this
.
answers
=
answers
;
}
}
src/test/java/com/oto/cases/otoseller/FormSubmit.java
0 → 100644
View file @
21684bda
This diff is collapsed.
Click to expand it.
src/test/java/com/oto/cases/otoseller/Phone.java
View file @
21684bda
...
@@ -266,13 +266,11 @@ public class Phone implements Authorization {
...
@@ -266,13 +266,11 @@ public class Phone implements Authorization {
public
void
上传第一次社区参观面访详情
(){
public
void
上传第一次社区参观面访详情
(){
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
int
[]
unusualTypes
=
{
1
,
2
};
int
[]
unusualTypes
=
{
1
,
2
};
int
[]
coreMakers
={
2
,
3
};
ArrayList
unusualProofs
=
new
ArrayList
();
ArrayList
unusualProofs
=
new
ArrayList
();
unusualProofs
.
add
(
"https://yun.dui88.com/kjy/image/20220506/ecf1d585e2e040ad97ec7996ce5bf2a3.jpg"
);
unusualProofs
.
add
(
"https://yun.dui88.com/kjy/image/20220506/ecf1d585e2e040ad97ec7996ce5bf2a3.jpg"
);
unusualProofs
.
add
(
"https://yun.dui88.com/kjy/image/20220505/62cc0df86ed7430ea67d5015ee3fcc2b.jpg"
);
unusualProofs
.
add
(
"https://yun.dui88.com/kjy/image/20220505/62cc0df86ed7430ea67d5015ee3fcc2b.jpg"
);
params
.
put
(
"id"
,
interviewIds
.
get
(
0
));
params
.
put
(
"id"
,
interviewIds
.
get
(
0
));
params
.
put
(
"interviewRemark"
,
"第一次社区参观"
);
params
.
put
(
"interviewRemark"
,
"第一次社区参观"
);
params
.
put
(
"coreMakers"
,
coreMakers
);
params
.
put
(
"birthdayTime"
,
"1960-01-03"
);
params
.
put
(
"birthdayTime"
,
"1960-01-03"
);
params
.
put
(
"custAddress"
,
"杭州市文新地铁站"
);
params
.
put
(
"custAddress"
,
"杭州市文新地铁站"
);
params
.
put
(
"followWeight"
,
3
);
params
.
put
(
"followWeight"
,
3
);
...
@@ -416,13 +414,11 @@ public class Phone implements Authorization {
...
@@ -416,13 +414,11 @@ public class Phone implements Authorization {
otoTakerTku
();
otoTakerTku
();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
int
[]
unusualTypes
=
{
2
};
int
[]
unusualTypes
=
{
2
};
int
[]
coreMakers
=
{
2
,
4
};
ArrayList
unusualProofs
=
new
ArrayList
();
ArrayList
unusualProofs
=
new
ArrayList
();
unusualProofs
.
add
(
"https://yun.dui88.com/kjy/image/20220506/ecf1d585e2e040ad97ec7996ce5bf2a3.jpg"
);
unusualProofs
.
add
(
"https://yun.dui88.com/kjy/image/20220506/ecf1d585e2e040ad97ec7996ce5bf2a3.jpg"
);
params
.
put
(
"id"
,
interviewIds
.
get
(
1
));
params
.
put
(
"id"
,
interviewIds
.
get
(
1
));
params
.
put
(
"custPhase"
,
1
);
params
.
put
(
"custPhase"
,
1
);
params
.
put
(
"interviewRemark"
,
"第二次的社区参观"
);
params
.
put
(
"interviewRemark"
,
"第二次的社区参观"
);
params
.
put
(
"coreMakers"
,
coreMakers
);
params
.
put
(
"birthdayTime"
,
"1960-01-03"
);
params
.
put
(
"birthdayTime"
,
"1960-01-03"
);
params
.
put
(
"custAddress"
,
"杭州市文新地铁站"
);
params
.
put
(
"custAddress"
,
"杭州市文新地铁站"
);
params
.
put
(
"followWeight"
,
2
);
params
.
put
(
"followWeight"
,
2
);
...
@@ -562,10 +558,8 @@ public class Phone implements Authorization {
...
@@ -562,10 +558,8 @@ public class Phone implements Authorization {
@Test
(
description
=
"上传送计划书面访"
,
priority
=
41
)
@Test
(
description
=
"上传送计划书面访"
,
priority
=
41
)
public
void
上传送计划书面访
()
{
public
void
上传送计划书面访
()
{
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
params
=
new
HashMap
<>();
int
[]
coreMakers
=
{
2
,
4
};
params
.
put
(
"id"
,
interviewIds
.
get
(
2
));
params
.
put
(
"id"
,
interviewIds
.
get
(
2
));
params
.
put
(
"interviewRemark"
,
"送客户最终版计划书"
);
params
.
put
(
"interviewRemark"
,
"送客户最终版计划书"
);
params
.
put
(
"coreMakers"
,
coreMakers
);
params
.
put
(
"birthdayTime"
,
"1960-01-03"
);
params
.
put
(
"birthdayTime"
,
"1960-01-03"
);
params
.
put
(
"custAddress"
,
"杭州市文新地铁站"
);
params
.
put
(
"custAddress"
,
"杭州市文新地铁站"
);
params
.
put
(
"followWeight"
,
1
);
params
.
put
(
"followWeight"
,
1
);
...
...
src/test/java/com/oto/config/BasicConfig.java
View file @
21684bda
...
@@ -259,6 +259,16 @@ public class BasicConfig {
...
@@ -259,6 +259,16 @@ public class BasicConfig {
public
static
final
String
WORK_deptDel
=
WORK_HOST
+
"/kjy/oto/manager/dept/delete"
;
public
static
final
String
WORK_deptDel
=
WORK_HOST
+
"/kjy/oto/manager/dept/delete"
;
public
static
final
String
WORK_batchAddSeller
=
WORK_HOST
+
"/kjy/oto/manager/dept/batchAddSeller"
;
public
static
final
String
WORK_batchAddSeller
=
WORK_HOST
+
"/kjy/oto/manager/dept/batchAddSeller"
;
//**************************资料配置***************************
public
static
final
String
WORK_formList
=
WORK_HOST
+
"/kjy/oto/customer/form/list"
;
public
static
final
String
WORK_formSave
=
WORK_HOST
+
"/kjy/oto/customer/form/saveForm"
;
public
static
final
String
WORK_formStatus
=
WORK_HOST
+
"/kjy/oto/customer/form/formStatus"
;
public
static
final
String
WORK_saveFormDetail
=
WORK_HOST
+
"/kjy/oto/customer/form/saveFormDetail"
;
public
static
final
String
WORK_formSubmit
=
WORK_HOST
+
"/kjy/oto/customer/form/submit"
;
public
static
final
String
WORK_formDetail
=
WORK_HOST
+
"/kjy/oto/customer/form/detail"
;
public
static
final
String
WORK_custDetail
=
WORK_HOST
+
"/kjy/oto/customer/form/custDetail"
;
public
static
final
String
WORK_formOrder
=
WORK_HOST
+
"/kjy/oto/customer/form/order"
;
//**************************客户管理***************************
//**************************客户管理***************************
public
static
final
String
WORK_MNG_custSourceList
=
WORK_HOST
+
"/kjy/oto/mng/common/custFromSourceList"
;
public
static
final
String
WORK_MNG_custSourceList
=
WORK_HOST
+
"/kjy/oto/mng/common/custFromSourceList"
;
public
static
final
String
WORK_MNG_customerList
=
WORK_HOST
+
"/kjy/oto/mng/pub/form/customer/list/v2"
;
public
static
final
String
WORK_MNG_customerList
=
WORK_HOST
+
"/kjy/oto/mng/pub/form/customer/list/v2"
;
...
...
src/test/java/com/oto/utils/BaseUtils.java
View file @
21684bda
...
@@ -214,4 +214,14 @@ public class BaseUtils {
...
@@ -214,4 +214,14 @@ public class BaseUtils {
System
.
out
.
println
(
"久久保cookie中的key:"
+
JJBManagerCookieKey
+
",values:"
+
JJBManagerCookieValue
);
System
.
out
.
println
(
"久久保cookie中的key:"
+
JJBManagerCookieKey
+
",values:"
+
JJBManagerCookieValue
);
}
}
public
static
String
randomCode
()
{
StringBuilder
sb
=
new
StringBuilder
();
for
(
int
i
=
0
;
i
<
4
;
i
++){
sb
.
append
((
char
)
(
Math
.
random
()*
26
+
97
));
}
String
code
=
sb
.
toString
();
System
.
out
.
println
(
"随机码 :"
+
code
);
return
code
;
}
}
}
src/test/workTestNG.xml
View file @
21684bda
...
@@ -19,6 +19,12 @@
...
@@ -19,6 +19,12 @@
</classes>
</classes>
</test>
</test>
<test
preserve-order=
"true"
name=
"PC_客户资料配置"
>
<classes>
<class
name=
"com.oto.cases.otoseller.FormSubmit"
/>
</classes>
</test>
<test
preserve-order=
"true"
name=
"PC_邀约承诺"
>
<test
preserve-order=
"true"
name=
"PC_邀约承诺"
>
<classes>
<classes>
<class
name=
"com.oto.cases.otoseller.Invite"
/>
<class
name=
"com.oto.cases.otoseller.Invite"
/>
...
@@ -37,11 +43,11 @@
...
@@ -37,11 +43,11 @@
</classes>
</classes>
</test>
</test>
<!-- <test preserve-order="true" name="久久保人管系统">--
>
<test
preserve-order=
"true"
name=
"久久保人管系统"
>
<!-- <classes>--
>
<classes
>
<!-- <class name="com.oto.cases.otoseller.JiuJiuBao"/>--
>
<class
name=
"com.oto.cases.otoseller.JiuJiuBao"
/
>
<!-- </classes>--
>
</classes
>
<!-- </test>--
>
</test
>
</suite>
</suite>
<!-- Suite -->
<!-- Suite -->
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment