|
TestNG конект к базе
|
|||
---|---|---|---|
#18+
подскажите пожалуйста, надо сделать конект к базе с помощью technique TestNG. @Parameters( {?????????????????? }) @BeforeClass public static void setUp() throws Exception { selenium = new DefaultSelenium("localhost", 4442, "*iexplore", "http://mail.ru"); selenium.start(); } // CONNECTION-- private static Connection con = null; private static List<String> getDATA() { List<String> list = new ArrayList<String>(); try { Class.forName("com.mysql.jdbc.Driver"); con = DriverManager.getConnection( "jdbc:mysql://localhost:3306/user", "root", "sql"); Statement st = con.createStatement(); ResultSet rsMailBox = st.executeQuery("SELECT * FROM `mailbox`"); ....... // --CONNECTION ... |
|||
:
Нравится:
Не нравится:
|
|||
06.05.2010, 01:42 |
|
|
start [/forum/topic.php?fid=36&fpage=9&tid=1554847]: |
0ms |
get settings: |
10ms |
get forum list: |
16ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
27ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
35ms |
get tp. blocked users: |
1ms |
others: | 262ms |
total: | 370ms |
0 / 0 |