Skip to content

Commit

Permalink
updated code changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ragavareddychalapala committed Jan 24, 2025
1 parent 2f802fa commit 6621cba
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ public void Setup()
[Test, Order(1)]
public void ComponentCreatorExe_ProvidedBOMFilePath_ReturnsSuccess()
{
string bomPath = OutFolder + $"\\..\\BOMs\\{testParameters.SW360ProjectName}_Bom.cdx.json";
string bomPath = OutFolder + $"\\..\\BOMs";
// Assert
// Check exit is normal
Assert.AreEqual(0, TestHelper.RunComponentCreatorExe(new string[] {
TestConstant.PackageFilePath,bomPath,
TestConstant.BomFolderPath,bomPath,
TestConstant.Sw360Token, testParameters.SW360AuthTokenValue,
TestConstant.SW360URL, testParameters.SW360URL,
TestConstant.SW360AuthTokenType, testParameters.SW360AuthTokenType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ public void Setup()
[Test, Order(1)]
public void TestComponentCreatorExe_Conan()
{
string bomPath = OutFolder + $"\\..\\BOMs\\{testParameters.SW360ProjectName}_Bom.cdx.json";
string bomPath = OutFolder + $"\\..\\BOMs";
// Assert
// Check exit is normal
Assert.AreEqual(0, TestHelper.RunComponentCreatorExe(new string[] {
TestConstant.PackageFilePath,bomPath,
TestConstant.BomFolderPath,bomPath,
TestConstant.Sw360Token, testParameters.SW360AuthTokenValue,
TestConstant.SW360URL, testParameters.SW360URL,
TestConstant.SW360AuthTokenType, testParameters.SW360AuthTokenType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ public void Setup()
[Test, Order(1)]
public void ComponentCreatorExe_ProvidedBOMFilePath_ReturnsSuccess()
{
string bomPath = OutFolder + $"\\..\\BOMs\\{testParameters.SW360ProjectName}_Bom.cdx.json";
string bomPath = OutFolder + $"\\..\\BOMs";
// Assert
// Check exit is normal
Assert.AreEqual(0, TestHelper.RunComponentCreatorExe(new string[] {
TestConstant.PackageFilePath,bomPath,
TestConstant.BomFolderPath,bomPath,
TestConstant.Sw360Token, testParameters.SW360AuthTokenValue,
TestConstant.SW360URL, testParameters.SW360URL,
TestConstant.SW360AuthTokenType, testParameters.SW360AuthTokenType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ public void Setup()
[Test, Order(1)]
public void ComponentCreatorExe_ProvidedBOMFilePath_ReturnsSuccess()
{
string bomPath = OutFolder + $"\\..\\BOMs\\{testParameters.SW360ProjectName}_Bom.cdx.json";
string bomPath = OutFolder + $"\\..\\BOMs";
// Assert
// Check exit is normal
Assert.AreEqual(0, TestHelper.RunComponentCreatorExe(new string[] {
TestConstant.PackageFilePath,bomPath,
TestConstant.BomFolderPath,bomPath,
TestConstant.Sw360Token, testParameters.SW360AuthTokenValue,
TestConstant.SW360URL, testParameters.SW360URL,
TestConstant.SW360AuthTokenType, testParameters.SW360AuthTokenType,
Expand Down
4 changes: 2 additions & 2 deletions src/SW360IntegrationTest/NPM/ComponentCreatorInitial.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ public void Setup()
[Test, Order(1)]
public void TestComponentCreatorExe()
{
string bomPath = OutFolder + $"\\..\\BOMs\\{testParameters.SW360ProjectName}_Bom.cdx.json";
string bomPath = OutFolder + $"\\..\\BOMs";

// Assert
// Check return with warning code 2
Assert.AreEqual(2 | 0, TestHelper.RunComponentCreatorExe(new string[] {
TestConstant.PackageFilePath,bomPath,
TestConstant.BomFolderPath,bomPath,
TestConstant.Sw360Token, testParameters.SW360AuthTokenValue,
TestConstant.SW360URL, testParameters.SW360URL,
TestConstant.SW360AuthTokenType, testParameters.SW360AuthTokenType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ public void Setup()
[Test, Order(1)]
public void TestComponentCreatorExe()
{
string bomPath = OutFolder + $"\\..\\Set2BOMs\\{testParameters.SW360ProjectName}_Bom.cdx.json";
string bomPath = OutFolder + $"\\..\\Set2BOMs";
// Assert
// Check exit is normal
Assert.AreEqual(0, TestHelper.RunComponentCreatorExe(new string[] {
TestConstant.PackageFilePath,bomPath,
TestConstant.BomFolderPath,bomPath,
TestConstant.Sw360Token, testParameters.SW360AuthTokenValue,
TestConstant.SW360URL, testParameters.SW360URL,
TestConstant.SW360AuthTokenType, testParameters.SW360AuthTokenType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ public void Setup()
[Test, Order(1)]
public void ComponentCreatorExe_ProvidedBOMFilePath_ReturnsSuccess()
{
string bomPath = OutFolder + $"\\..\\BOMs\\{testParameters.SW360ProjectName}_Bom.cdx.json";
string bomPath = OutFolder + $"\\..\\BOMs";
// Assert
// Check exit is normal
Assert.AreEqual(2 | 0, TestHelper.RunComponentCreatorExe(new string[] {
TestConstant.PackageFilePath,bomPath,
TestConstant.BomFolderPath,bomPath,
TestConstant.Sw360Token, testParameters.SW360AuthTokenValue,
TestConstant.SW360URL, testParameters.SW360URL,
TestConstant.SW360AuthTokenType, testParameters.SW360AuthTokenType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ public void Setup()
[Test, Order(1)]
public void ComponentCreatorExe_ProvidedBOMFilePath_ReturnsSuccess()
{
string bomPath = OutFolder + $"\\..\\BOMs\\{testParameters.SW360ProjectName}_Bom.cdx.json";
string bomPath = OutFolder + $"\\..\\BOMs";
// Assert
// Check exit is normal

int value = TestHelper.RunComponentCreatorExe(new string[] {
TestConstant.PackageFilePath,bomPath,
TestConstant.BomFolderPath,bomPath,
TestConstant.Sw360Token, testParameters.SW360AuthTokenValue,
TestConstant.SW360URL, testParameters.SW360URL,
TestConstant.SW360AuthTokenType, testParameters.SW360AuthTokenType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ public void Setup()
[Test, Order(1)]
public void ComponentCreatorExe_ProvidedBOMFilePath_ReturnsSuccess()
{
string bomPath = OutFolder + $"\\..\\BOMs\\{testParameters.SW360ProjectName}_Bom.cdx.json";
string bomPath = OutFolder + $"\\..\\BOMs";
// Assert
// Check exit is normal
int returnValue = TestHelper.RunComponentCreatorExe(new string[] {
TestConstant.PackageFilePath,bomPath,
TestConstant.BomFolderPath,bomPath,
TestConstant.Sw360Token, testParameters.SW360AuthTokenValue,
TestConstant.SW360URL, testParameters.SW360URL,
TestConstant.SW360AuthTokenType, testParameters.SW360AuthTokenType,
Expand Down

0 comments on commit 6621cba

Please sign in to comment.