Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit a0adf66

Browse files
committed
代码重构
1 parent 1ac9dc8 commit a0adf66

File tree

143 files changed

+263
-6946
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+263
-6946
lines changed

pom.xml

Lines changed: 5 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -125,62 +125,57 @@
125125
<artifactId>autotest.webui</artifactId>
126126
<version>1.0-SNAPSHOT</version>
127127
</dependency>
128+
<dependency>
129+
<groupId>com.surenpi.autotest</groupId>
130+
<artifactId>autotest.datasource</artifactId>
131+
<version>1.0-SNAPSHOT</version>
132+
</dependency>
128133

129134
<!-- Selenium依赖 -->
130135
<dependency>
131136
<groupId>org.seleniumhq.selenium</groupId>
132137
<artifactId>selenium-java</artifactId>
133-
<version>${selenium.version}</version>
134138
</dependency>
135139
<dependency>
136140
<groupId>org.seleniumhq.selenium</groupId>
137141
<artifactId>selenium-support</artifactId>
138-
<version>${selenium.version}</version>
139142
</dependency>
140143
<dependency>
141144
<groupId>org.seleniumhq.selenium</groupId>
142145
<artifactId>selenium-remote-driver</artifactId>
143-
<version>${selenium.version}</version>
144146
</dependency>
145147

146148
<!-- xml解析 -->
147149
<dependency>
148150
<groupId>xml-apis</groupId>
149151
<artifactId>xml-apis</artifactId>
150-
<version>1.4.01</version>
151152
</dependency>
152153

153154
<dependency>
154155
<groupId>javax.annotation</groupId>
155156
<artifactId>javax.annotation-api</artifactId>
156-
<version>1.2</version>
157157
</dependency>
158158
<dependency>
159159
<groupId>dom4j</groupId>
160160
<artifactId>dom4j</artifactId>
161-
<version>1.6.1</version>
162161
</dependency>
163162
<dependency>
164163
<groupId>jaxen</groupId>
165164
<artifactId>jaxen</artifactId>
166-
<version>1.1.6</version>
167165
</dependency>
168166
<dependency>
169167
<groupId>org.apache.ws.xmlschema</groupId>
170168
<artifactId>xmlschema-core</artifactId>
171-
<version>2.1.0</version>
172169
</dependency>
173170

174171
<!-- excel -->
175172
<dependency>
176173
<groupId>org.apache.poi</groupId>
177174
<artifactId>poi</artifactId>
178-
<version>3.10.1</version>
179175
</dependency>
180176
<dependency>
181177
<groupId>org.apache.poi</groupId>
182178
<artifactId>poi-ooxml</artifactId>
183-
<version>3.10-FINAL</version>
184179
</dependency>
185180

186181
<!-- spring -->
@@ -204,12 +199,10 @@
204199
<dependency>
205200
<groupId>org.aspectj</groupId>
206201
<artifactId>aspectjrt</artifactId>
207-
<version>${aspectj.version}</version>
208202
</dependency>
209203
<dependency>
210204
<groupId>org.aspectj</groupId>
211205
<artifactId>aspectjweaver</artifactId>
212-
<version>${aspectj.version}</version>
213206
</dependency>
214207

215208
<!-- logging -->
@@ -232,37 +225,10 @@
232225
<dependency>
233226
<groupId>org.codehaus.groovy</groupId>
234227
<artifactId>groovy</artifactId>
235-
<version>${groovy.version}</version>
236228
</dependency>
237229
<dependency>
238230
<groupId>org.codehaus.groovy</groupId>
239231
<artifactId>groovy-jsr223</artifactId>
240-
<version>${groovy.version}</version>
241-
</dependency>
242-
243-
<!-- 源码编译 -->
244-
<dependency>
245-
<groupId>org.eclipse.jdt</groupId>
246-
<artifactId>core</artifactId>
247-
<version>3.3.0-v_771</version>
248-
<exclusions>
249-
<exclusion>
250-
<groupId>org.eclipse.equinox</groupId>
251-
<artifactId>common</artifactId>
252-
</exclusion>
253-
<exclusion>
254-
<groupId>org.eclipse</groupId>
255-
<artifactId>osgi</artifactId>
256-
</exclusion>
257-
<exclusion>
258-
<groupId>org.eclipse.equinox</groupId>
259-
<artifactId>app</artifactId>
260-
</exclusion>
261-
<exclusion>
262-
<groupId>org.eclipse.core</groupId>
263-
<artifactId>jobs</artifactId>
264-
</exclusion>
265-
</exclusions>
266232
</dependency>
267233

268234
<!-- <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId>
@@ -272,7 +238,6 @@
272238
<dependency>
273239
<groupId>org.freemarker</groupId>
274240
<artifactId>freemarker</artifactId>
275-
<version>2.3.20</version>
276241
</dependency>
277242

278243
<!-- 工具类 <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId>

src/main/java/org/suren/autotest/web/framework/AutoApplicationConfig.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@
2929
* @date 2017年6月8日 上午8:21:10
3030
*/
3131
@Configuration
32-
@ComponentScan
32+
@ComponentScan({"com.surenpi.autotest.webui",
33+
"org.suren.autotest.web.framework",
34+
"com.surenpi.autotest.datasource"
35+
})
3336
@ImportResource({"autoTestContext.xml", "beanScope.xml"})
3437
@Import({
3538
Image4SearchLog.class,

src/main/java/org/suren/autotest/web/framework/annotation/AutoCookie.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import java.lang.annotation.RetentionPolicy;
77
import java.lang.annotation.Target;
88

9-
import org.suren.autotest.web.framework.page.Page;
9+
import com.surenpi.autotest.webui.Page;
1010

1111
/**
1212
* @author suren

src/main/java/org/suren/autotest/web/framework/annotation/AutoDataSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import java.lang.annotation.RetentionPolicy;
2525
import java.lang.annotation.Target;
2626

27-
import org.suren.autotest.web.framework.data.DataSourceConstants;
27+
import com.surenpi.autotest.datasource.DataSourceConstants;
2828

2929
/**
3030
* 数据源注解类

src/main/java/org/suren/autotest/web/framework/annotation/AutoDynamicData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import java.lang.annotation.RetentionPolicy;
2323
import java.lang.annotation.Target;
2424

25-
import org.suren.autotest.web.framework.data.DynamicDataConstants;
25+
import com.surenpi.autotest.datasource.DynamicDataConstants;
2626

2727
/**
2828
* @author suren

src/main/java/org/suren/autotest/web/framework/annotation/AutoLocalStorage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import java.lang.annotation.RetentionPolicy;
2323
import java.lang.annotation.Target;
2424

25-
import org.suren.autotest.web.framework.page.Page;
25+
import com.surenpi.autotest.webui.Page;
2626

2727
/**
2828
* @author suren

src/main/java/org/suren/autotest/web/framework/annotation/AutoLocator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import java.lang.annotation.RetentionPolicy;
2525
import java.lang.annotation.Target;
2626

27-
import org.suren.autotest.web.framework.core.LocatorType;
27+
import com.surenpi.autotest.webui.core.LocatorType;
2828

2929
/**
3030
* 元素定位符

src/main/java/org/suren/autotest/web/framework/annotation/AutoSessionStorage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import java.lang.annotation.RetentionPolicy;
2525
import java.lang.annotation.Target;
2626

27-
import org.suren.autotest.web.framework.page.Page;
27+
import com.surenpi.autotest.webui.Page;
2828

2929
/**
3030
* 用在方法上,第一次执行时,保存session信息;之后方法被调用时则会跳过

src/main/java/org/suren/autotest/web/framework/annotation/AutoStrategy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import java.lang.annotation.RetentionPolicy;
2525
import java.lang.annotation.Target;
2626

27-
import org.suren.autotest.web.framework.core.StrategyType;
27+
import com.surenpi.autotest.webui.core.StrategyType;
2828

2929
/**
3030
* 定位策略

src/main/java/org/suren/autotest/web/framework/awt/AwtKeyboard.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
import java.awt.event.KeyEvent;
2222

2323
import org.springframework.stereotype.Component;
24-
import org.suren.autotest.web.framework.core.Keyboard;
24+
25+
import com.surenpi.autotest.webui.core.Keyboard;
2526

2627
/**
2728
* @author suren

0 commit comments

Comments
 (0)