Skip to main content
added 130 characters in body
Source Link
Parameter 'folderName' is required by @Configuration on method setUp_HerveLeger but has not been marked @Optional or defined

It says it right in the exception description. You need to define a parameter in you're TestNG XML file or provide an optional value.

@Parameters("folderName")
public void setUp(@Optional("Insert folder name here or leave empty") String folderName) {

It is explained clearly in the TestNG Documentation: TestNG Parameters

Example TestNG.xml

<suite name="testSuiteNameHere">
<parameter name="folderName" value="SomeValue"/>
</suite>
Parameter 'folderName' is required by @Configuration on method setUp_HerveLeger but has not been marked @Optional or defined

It says it right in the exception description. You need to define a parameter in you're TestNG XML file or provide an optional value.

@Parameters("folderName")
public void setUp(@Optional("Insert folder name here or leave empty") String folderName) {

It is explained clearly in the TestNG Documentation: TestNG Parameters

Parameter 'folderName' is required by @Configuration on method setUp_HerveLeger but has not been marked @Optional or defined

It says it right in the exception description. You need to define a parameter in you're TestNG XML file or provide an optional value.

@Parameters("folderName")
public void setUp(@Optional("Insert folder name here or leave empty") String folderName) {

It is explained clearly in the TestNG Documentation: TestNG Parameters

Example TestNG.xml

<suite name="testSuiteNameHere">
<parameter name="folderName" value="SomeValue"/>
</suite>
Source Link

Parameter 'folderName' is required by @Configuration on method setUp_HerveLeger but has not been marked @Optional or defined

It says it right in the exception description. You need to define a parameter in you're TestNG XML file or provide an optional value.

@Parameters("folderName")
public void setUp(@Optional("Insert folder name here or leave empty") String folderName) {

It is explained clearly in the TestNG Documentation: TestNG Parameters