Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdelrhman-Ellithy committed Nov 29, 2024
1 parent 6a5588e commit 7d3e689
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ target/*

# Test output directories
TestNGRunner.xml

src/test/resources/TestData/DB-Info.json
Ellithium.pptx

# Ignore content of specific directories but include .gitkeep for empty folders
Expand Down
11 changes: 6 additions & 5 deletions src/test/java/Tests/DBTEst.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@

public class DBTEst extends NonBDDSetup {
SQLDatabaseProvider db;
private final String path ="src/test/resources/TestData/DB-Info";
@BeforeClass
public void setup(){
String username=JsonHelper.getJsonKeyValue("../DB-Info","userName");
String password=JsonHelper.getJsonKeyValue("../DB-Info","password");
String serverIp=JsonHelper.getJsonKeyValue("../DB-Info","serverIp");
String port=JsonHelper.getJsonKeyValue("../DB-Info","port");
String dbName=JsonHelper.getJsonKeyValue("../DB-Info","dbName");
String username=JsonHelper.getJsonKeyValue(path,"userName");
String password=JsonHelper.getJsonKeyValue(path,"password");
String serverIp=JsonHelper.getJsonKeyValue(path,"serverIp");
String port=JsonHelper.getJsonKeyValue(path,"port");
String dbName=JsonHelper.getJsonKeyValue(path,"dbName");
System.out.println(username+"\n"+password+"\n"+serverIp+"\n"+port+"\n"+dbName);
db=new SQLDatabaseProvider(
SQLDBType.MY_SQL,
Expand Down

0 comments on commit 7d3e689

Please sign in to comment.