Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ADD some changes in srodinger.properties and configuration, experimen…
…ts with spring boot
- Loading branch information
1 parent
010856d
commit 611c038
Showing
9 changed files
with
163 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
...rodingertest/src/test/java/com/evolveum/midpoint/testing/schrodinger/TestSuiteConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package com.evolveum.midpoint.testing.schrodinger; | ||
|
||
import com.evolveum.midpoint.schrodinger.EnvironmentConfiguration; | ||
import com.evolveum.midpoint.schrodinger.MidPoint; | ||
|
||
import org.apache.commons.lang3.ArrayUtils; | ||
|
||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
import org.testng.annotations.AfterSuite; | ||
import org.testng.annotations.BeforeSuite; | ||
|
||
import java.io.IOException; | ||
|
||
|
||
/** | ||
* Created by matus on 7/10/2018. | ||
*/ | ||
public class TestSuiteConfig extends TestBase { | ||
|
||
private static final Logger LOG = LoggerFactory.getLogger(TestSuiteConfig.class); | ||
|
||
@BeforeSuite | ||
public void init() throws IOException { | ||
|
||
EnvironmentConfiguration config = new EnvironmentConfiguration(); | ||
midPoint = new MidPoint(config); | ||
String[] s= {"start"}; | ||
// try { | ||
// MidPointWarLauncher.start(s); | ||
// | ||
// } catch (Exception e) { | ||
// //TODO handle the right way | ||
// | ||
// LOG.debug("The application state: "+ e.getMessage()); | ||
// } | ||
|
||
LOG.debug("The application state: "+ ArrayUtils.toString(s)); | ||
|
||
} | ||
|
||
@AfterSuite | ||
public void cleanUp() { | ||
String[] s= {"stop"}; | ||
// try { | ||
// MidPointWarLauncher.main(s); | ||
// } catch (Exception e) { | ||
// //TODO handle the right way | ||
// e.printStackTrace(); | ||
// } | ||
|
||
|
||
LOG.debug("The application state: "+ ArrayUtils.toString(s)); | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
testing/schrodingertest/src/test/resources/configuration/schrodinger.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
username=administrator | ||
password=5ecr3t | ||
base_url=http://localhost:8080/midpoint | ||
webdriver=webdriver.chrome.driver | ||
webdriverLocation=C:\\Users\\matus\\chromedriver\\chromedriver.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters