对不起,我英语不好。我需要使用其他活动配置文件进行测试。我可以在启动课程中指定它们吗? 发射班:
@RunWith(Cucumber.class)
@CucumberOptions(
features = "src/test/features",
tags = "@extraPaymentWithCash",
glue = "ru.zoo.penguin.cucumber.steps",
snippets = SnippetType.CAMELCASE
)
//@ActiveProfiles({"h2", "h2_tm", "cash"}) This doesn't work, but i need to use these profiles
public class ExtraPaymentWithCashCucumberFeaturesTest {
}
步骤类:
@ActiveProfiles({"h2", "h2_tm"}) //i need to get rid of it
@ContextConfiguration(classes = {OperationTerminalManagerConfig.class, MainConfig.class, OperationTerminalHandlerConfig.class, PaymentTerminalHandlerConfig.class, BankConfig.class,
ManagersConfig.class, DaoConfig.class, DatabaseConfig.class, PechkinsConfig.class, ShooterConfig.class, ProcessManagerConfig.class,
CancelCucumberTestConfiguration.class, PaymentTerminalManagerConfig.class, CancelTerminalManagerConfig.class, CancelTerminalHandlerConfig.class})
@Transactional
@Log4j2
public class CancelCucumberBaseTest {
@Autowired
protected SmsMessageManager smsMessageManager;
....
}