Search in sources :

Example 1 with MemoryDBManagement

use of net.heartsome.cat.ts.test.basecase.menu.db.MemoryDBManagement in project translationstudio8 by heartsome.

the class ImportToDBTest method end.

@AfterClass
public static void end() {
    // 删除用完的数据库
    HsRow dbRow = shImportTMXData.new HsRow(1);
    MemoryDBManagement db = new MemoryDBManagement(dbRow);
    db.deleteDB(TsUIConstants.Entry.MENU, true);
}
Also used : HsRow(net.heartsome.test.utilities.poi.ExcelUtil.HsSheet.HsRow) MemoryDBManagement(net.heartsome.cat.ts.test.basecase.menu.db.MemoryDBManagement) AfterClass(org.junit.AfterClass)

Example 2 with MemoryDBManagement

use of net.heartsome.cat.ts.test.basecase.menu.db.MemoryDBManagement in project translationstudio8 by heartsome.

the class MemoryDatabaseTest method tc7CreatetreiTbDB.

@Repeat(5)
@Test
public void tc7CreatetreiTbDB() {
    HsRow row = shCreateDBData.new HsRow(createDBNum);
    MemoryDBManagement db = new MemoryDBManagement(row);
    db.setMemory(false);
    db.createDB(TsUIConstants.Entry.MENU);
    createDBNum++;
}
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 3 with MemoryDBManagement

use of net.heartsome.cat.ts.test.basecase.menu.db.MemoryDBManagement 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 4 with MemoryDBManagement

use of net.heartsome.cat.ts.test.basecase.menu.db.MemoryDBManagement 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 5 with MemoryDBManagement

use of net.heartsome.cat.ts.test.basecase.menu.db.MemoryDBManagement 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

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