Search in sources :

Example 6 with HsRow

use of net.heartsome.test.utilities.poi.ExcelUtil.HsSheet.HsRow in project translationstudio8 by heartsome.

the class MemoryDatabaseTest method tc8DeletetreiTbDB.

@Repeat(15)
@Ignore
@Test
public void tc8DeletetreiTbDB() {
    HsRow row = shDeleteDBData.new HsRow(deleteDBNum);
    MemoryDBManagement db = new MemoryDBManagement(row);
    db.setMemory(false);
    db.deleteDB(TsUIConstants.Entry.MENU);
    deleteDBNum++;
}
Also used : HsRow(net.heartsome.test.utilities.poi.ExcelUtil.HsSheet.HsRow) MemoryDBManagement(net.heartsome.cat.ts.test.basecase.menu.db.MemoryDBManagement) Ignore(org.junit.Ignore) Test(org.junit.Test) Repeat(net.heartsome.test.swtbot.junit.Repeat)

Example 7 with HsRow

use of net.heartsome.test.utilities.poi.ExcelUtil.HsSheet.HsRow in project translationstudio8 by heartsome.

the class MemoryDatabaseTest method tc6CreatetreiTbServer.

@Repeat(5)
@Test
public void tc6CreatetreiTbServer() {
    HsRow row = shConnectServerData.new HsRow(saveServerNum);
    MemoryDBManagement db = new MemoryDBManagement(row);
    db.setMemory(false);
    db.saveServer(TsUIConstants.Entry.MENU);
    System.out.println(saveServerNum);
    saveServerNum++;
}
Also used : HsRow(net.heartsome.test.utilities.poi.ExcelUtil.HsSheet.HsRow) MemoryDBManagement(net.heartsome.cat.ts.test.basecase.menu.db.MemoryDBManagement) Test(org.junit.Test) Repeat(net.heartsome.test.swtbot.junit.Repeat)

Example 8 with HsRow

use of net.heartsome.test.utilities.poi.ExcelUtil.HsSheet.HsRow in project translationstudio8 by heartsome.

the class DatabaseTest method tc4DeleteConnection.

@Repeat(5)
@Test
public void tc4DeleteConnection() {
    HsRow row = shConnectServerData.new HsRow(deleteConnectionNum);
    DBManagement db = new DBManagement(row);
    db.deleteConnection(TsUIConstants.Entry.SHORTCUT);
    deleteConnectionNum++;
}
Also used : HsRow(net.heartsome.test.utilities.poi.ExcelUtil.HsSheet.HsRow) DBManagement(net.heartsome.cat.ts.test.basecase.menu.db.DBManagement) Test(org.junit.Test) Repeat(net.heartsome.test.swtbot.junit.Repeat)

Example 9 with HsRow

use of net.heartsome.test.utilities.poi.ExcelUtil.HsSheet.HsRow in project translationstudio8 by heartsome.

the class DatabaseTest method tc1ConnectServer.

@Repeat(23)
@Test
public void tc1ConnectServer() {
    HsRow row = shConnectServerData.new HsRow(connectServerNum);
    DBManagement db = new DBManagement(row);
    db.connectServer(TsUIConstants.Entry.SHORTCUT);
    connectServerNum++;
}
Also used : HsRow(net.heartsome.test.utilities.poi.ExcelUtil.HsSheet.HsRow) DBManagement(net.heartsome.cat.ts.test.basecase.menu.db.DBManagement) Test(org.junit.Test) Repeat(net.heartsome.test.swtbot.junit.Repeat)

Example 10 with HsRow

use of net.heartsome.test.utilities.poi.ExcelUtil.HsSheet.HsRow in project translationstudio8 by heartsome.

the class MemoryDatabaseTest method tc5ConnecttreiTbServer.

//	@Repeat(23)
//	@Ignore
//	@Test
//	public void tc1ConnectServer() {
//		HsRow row = shConnectServerData.new HsRow(connectServerNum);
//		MemoryDBManagement db = new MemoryDBManagement(row);
//		db.connectServer(TsUIConstants.Entry.MENU);
//		connectServerNum++;
//	}
//	
//	@Repeat(5)
//	@Test
//	public void tc12CreateServer() {
//		HsRow row = shConnectServerData.new HsRow(saveServerNum);
//		MemoryDBManagement db = new MemoryDBManagement(row);
//		db.saveServer(TsUIConstants.Entry.MENU);
//		System.out.println(saveServerNum);
//		saveServerNum ++;
//	}
//	
//	
//
//	@Repeat(5)
//	@Test
//	public void tc2CreateDB() {
//		HsRow row = shCreateDBData.new HsRow(createDBNum);
//		MemoryDBManagement db = new MemoryDBManagement(row);
//		db.createDB(TsUIConstants.Entry.MENU);
//		createDBNum++;
//	}
//
//	@Repeat(15)
//	@Ignore
//	@Test
//	public void tc3DeleteDB() {
//		HsRow row = shDeleteDBData.new HsRow(deleteDBNum);
//		MemoryDBManagement db = new MemoryDBManagement(row);
//		db.deleteDB(TsUIConstants.Entry.MENU);
//		deleteDBNum++;
//	}
//
//	@Repeat(5)
//	@Ignore
//	@Test
//	public void tc4DeleteConnection() {
//		HsRow row = shConnectServerData.new HsRow(deleteConnectionNum);
//		MemoryDBManagement db = new MemoryDBManagement(row);
//		db.deleteConnection(TsUIConstants.Entry.MENU);
//		deleteConnectionNum++;
//	}
@Repeat(23)
@Ignore
@Test
public void tc5ConnecttreiTbServer() {
    HsRow row = shConnectServerData.new HsRow(connectServerNum);
    MemoryDBManagement db = new MemoryDBManagement(row);
    db.setMemory(false);
    db.connectServer(TsUIConstants.Entry.MENU);
    connectServerNum++;
}
Also used : HsRow(net.heartsome.test.utilities.poi.ExcelUtil.HsSheet.HsRow) MemoryDBManagement(net.heartsome.cat.ts.test.basecase.menu.db.MemoryDBManagement) Ignore(org.junit.Ignore) Test(org.junit.Test) Repeat(net.heartsome.test.swtbot.junit.Repeat)

Aggregations

HsRow (net.heartsome.test.utilities.poi.ExcelUtil.HsSheet.HsRow)11 Repeat (net.heartsome.test.swtbot.junit.Repeat)10 Test (org.junit.Test)10 MemoryDBManagement (net.heartsome.cat.ts.test.basecase.menu.db.MemoryDBManagement)6 DBManagement (net.heartsome.cat.ts.test.basecase.menu.db.DBManagement)4 Ignore (org.junit.Ignore)3 ImportToDB (net.heartsome.cat.ts.test.basecase.menu.db.ImportToDB)1 AfterClass (org.junit.AfterClass)1