BAEL-5990 Added JMeter-Dashboard profile to isolate (#13435)

* BAEL-5990 is implemented to generate JMeter dashboard reports

* BAEL-5990 made a fix to use Random nextInt() method with single arg

* BAEL-5990 updated code to use Arrays.asList rather than List.of

* BAEL-5990 Replaced tabs with space

* BAEL-5990 Removed unnecessary exception in the method declaration

* BAEL-5990 Updated class name

* BAEL-5990 Added JMeterDashboard profile to exclude DashboardApplication scan in other cases
This commit is contained in:
Muhammad Asif 2023-02-07 05:23:47 +05:00 committed by GitHub
parent 382e9255fc
commit 0dbc07b1de
2 changed files with 7 additions and 0 deletions

View File

@ -104,6 +104,11 @@
</configuration>
</execution>
</executions>
<configuration>
<profiles>
<profile>JMeter-Dashboard</profile>
</profiles>
</configuration>
</plugin>
<plugin>
<groupId>com.lazerycode.jmeter</groupId>

View File

@ -6,7 +6,9 @@ import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfigurat
import org.springframework.boot.autoconfigure.data.mongo.MongoRepositoriesAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.context.annotation.Profile;
@Profile("JMeter-Dashboard")
@SpringBootApplication(exclude = { SecurityAutoConfiguration.class, MongoAutoConfiguration.class, MongoRepositoriesAutoConfiguration.class, MongoDataAutoConfiguration.class })
public class DashboardApplication {
public static void main(String[] args) throws Exception {