...
 
Commits (2)
......@@ -17,7 +17,7 @@ import org.ofbizextra.ofbswd.use.PartyScreens;
import org.openqa.selenium.By;
/**
* A scenario to show how to use HR Apache OFBiz component to manage a company organization<br/>
* This scenario can be used as a tutorial presentation of Apache OFBiz HR component, it follow
* This scenario can be used as a tutorial presentation of Apache OFBiz HR component, it follow
* the HR process "Organization, Job Position and Definition" describe in OFBiz user documentation.<br/>
* Contains only one test :
* <ul>
......@@ -68,7 +68,7 @@ public class CompanyOrganization extends SimpleTestSuite{
}
/**
* HR scenario "Organization, Job Position and Definition".<br/>
* This scenario can be used as a tutorial presentation of Apache OFBiz HR component, it follow
* This scenario can be used as a tutorial presentation of Apache OFBiz HR component, it follow
* the HR process "Organization, Job Position and Definition" describe in OFBiz user documentation.<br/>
* <ul>
* <li>log as admin (data-obj login) with {@link OfbizSWdHelper#login OfbizSWdHelper.login}.</li>
......@@ -76,7 +76,7 @@ public class CompanyOrganization extends SimpleTestSuite{
* {@link OfbizSWdHelper#checkAndSetEnvironment OfbizSWdHelper.checkAndSetEnvironment}.</li>
* <li>step 1 to 4</li>
* </ul>
*
*
* @throws Exception
*/
@Test
......@@ -156,7 +156,7 @@ public class CompanyOrganization extends SimpleTestSuite{
/**
* HR scenario "Organization, Job Position and Definition".<br/>
* This scenario can be used as a tutorial presentation of Apache OFBiz HR component, it follow
* This scenario can be used as a tutorial presentation of Apache OFBiz HR component, it follow
* the HR process "Organization, Job Position and Definition" describe in OFBiz user documentation.<br/>
* <ul>
* <li>log as admin (data-obj login) with {@link OfbizSWdHelper#login OfbizSWdHelper.login}.</li>
......@@ -164,7 +164,7 @@ public class CompanyOrganization extends SimpleTestSuite{
* {@link OfbizSWdHelper#checkAndSetEnvironment OfbizSWdHelper.checkAndSetEnvironment}.</li>
* <li>step 5 and 6</li>
* </ul>
*
*
* @throws Exception
*/
@Test
......@@ -310,7 +310,7 @@ public class CompanyOrganization extends SimpleTestSuite{
* .. Employee Position
* .. change Internal Organization to Development Team 1
* .. Update
*
*
*/
private void step3(DataObj deployCompany, DataObj menuEmployeePosition) throws Exception {
HumanresScreens.deploy(this, deployCompany);
......@@ -335,11 +335,13 @@ public class CompanyOrganization extends SimpleTestSuite{
add2InfoTech.put("internalOrgId", "TESTING");
HumanresScreens.addInternalOrganization(this, add2InfoTech);
// add DemoLeadOwnersGroup as internal Organization for Sales Department
/*
HumanresScreens.deploy(this, deployCompany);
HumanresScreens.addInternalOrganization(this, testCaseData.getDataObj("add2Sales"));
// remove <A Group of Lead Owners> Department for Company
HumanresScreens.deploy(this, deployCompany);
HumanresScreens.removeInternalOrganization(this, testCaseData.getDataObj("removeGroupLeadOwner"));
*/
// add RECEIVING and LEGAL as internal Organization for Accounting
DataObj add2Accounting = testCaseData.getDataObj("addReceiving2Accounting");
HumanresScreens.deploy(this, deployCompany);
......@@ -353,7 +355,7 @@ public class CompanyOrganization extends SimpleTestSuite{
String.format(userLabel.getString("findOneEmployeePosition"), "DEMO100" ));
HumanresScreens.selectEmployeePosition(this, "DEMO100");
NavigationActions.gotoSubMenu(this, "Employee Position");
HumanresScreens.updateEmployeePosition(this, testCaseData.getDataObj("Demo100ToDev"),
HumanresScreens.updateEmployeePosition(this, testCaseData.getDataObj("Demo100ToDev"),
String.format(userLabel.getString("updateTheEmployeePosition"), "DEMO100" ));
deployCompany.put("subDepartmentId", "INFO_TECH");
......@@ -377,7 +379,7 @@ public class CompanyOrganization extends SimpleTestSuite{
* ** 2 product owner
* *** PRODUCT_OWNER_1
* *** PRODUCT_OWNER_2
*
*
*/
private void step5_1(DataObj menuEmployeePosition) throws Exception {
DataObj emplPos = testCaseData.getDataObj("emplPosBackDev");
......@@ -528,7 +530,7 @@ public class CompanyOrganization extends SimpleTestSuite{
/**
* goto menu Main, deploy tree with deploy and right click to jobPosition to click to add a person,
* goto menu Main, deploy tree with deploy and right click to jobPosition to click to add a person,
* fulfill partyId with employee.firstName and click on first line of auto-completion drop-down.
* @param emplPositionId
* @param deploy
......