TestDemo.java
3.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
//package com.huaheng.test;
//
//import com.huaheng.api.jindie.InvokeHelper;
//import com.huaheng.api.jindie.domain.login.Login;
//import org.junit.Test;
//import org.junit.runner.RunWith;
//import org.springframework.boot.test.context.SpringBootTest;
//import org.springframework.test.context.junit4.SpringRunner;
//
//import javax.annotation.Resource;
//import java.util.ArrayList;
//
//@SpringBootTest
//@RunWith(SpringRunner.class)
//public class TestDemo {
// @Resource
// private InvokeHelper invokeHelper;
//
// @Test
// //测试采购入库单
// public void login() throws Exception {
// Login login = new Login();
// login.setAcctID("630b2eb5ee7f8d");
// login.setUsername("13560088336");
// login.setPassword("123456789");
// login.setLcid("2052");
//// if (InvokeHelper.Login(login)) {
//// invokeHelper.Push("CGSL001049");
//// System.out.println("===========Push============");
//// invokeHelper.Select("CGSL001049");
//// System.out.println("===========Select============");
//// invokeHelper.Save("CGSL001049");
//// System.out.println("===========Save============");
//// invokeHelper.Submit("CGSL001049");
//// System.out.println("===========Submit============");
//// invokeHelper.Audit("CGSL001049");
//// System.out.println("===========Audit============");
//// invokeHelper.Delete("CGSL001049");
//// }
//
// }
//
// @Test
// //测试直接调拨单
// public void allocate() throws Exception {
//// Login login = new Login();
//// login.setAcctID("630b2eb5ee7f8d");
//// login.setUsername("13560088336");
//// login.setPassword("123456789");
//// login.setLcid("2052");
//// if (invokeHelper.Login(login)) {
//// invokeHelper.POSITION_SELECT("CK622001");
//// System.out.println("===========POSITION_SELECT============");
//// invokeHelper.POSITION_SELECT("CK622002");
//// System.out.println("===========POSITION_SELECT============");
//// invokeHelper.POSITION_SELECT("CK622003");
//// System.out.println("===========POSITION_SELECT============");
//// invokeHelper.POSITION_SELECT("CK622004");
//// System.out.println("===========POSITION_SELECT============");
//// invokeHelper.POSITION_SELECT("CK622005");
//// System.out.println("===========POSITION_SELECT============");
//// invokeHelper.POSITION_SELECT("CK622006");
//// System.out.println("===========POSITION_SELECT============");
//// invokeHelper.POSITION_SELECT("CK622007");
//// System.out.println("===========POSITION_SELECT============");
//// invokeHelper.POSITION_SELECT("CK622008");
//// System.out.println("===========POSITION_SELECT============");
////// invokeHelper.allocateSave("SP2022083000002","CK621001","CK621002");
////// System.out.println("===========allocateSave============");
////// invokeHelper.allocateSubmit("SP2022083000002");
////// System.out.println("===========allocateSubmit============");
////// invokeHelper.allocateAudit("SP2022083000002");
////// System.out.println("===========allocateAudit============");
//// }
//
// }
// @Test
// public void testPositionSave() throws Exception {
//// Login login = new Login();
//// login.setAcctID("630b2eb5ee7f8d");
//// login.setUsername("13560088336");
//// login.setPassword("123456789");
//// login.setLcid("2052");
//// if (invokeHelper.Login(login)) {
//// invokeHelper.position_save();
//// }
// }
//
//
//
//}