autotestconfighandler.c 397 B

123456789101112131415161718192021
  1. class AutotestConfigHandler
  2. {
  3. static ref AutotestConfigJson m_Data = new AutotestConfigJson();
  4. static bool LoadData(string path)
  5. {
  6. string errorMessage;
  7. if (!JsonFileLoader<AutotestConfigJson>.LoadFile(path, m_Data, errorMessage))
  8. {
  9. AutoTestFixture.LogRPT(errorMessage);
  10. return false;
  11. }
  12. return true;
  13. }
  14. static set<string> GetSuites()
  15. {
  16. return m_Data.TestSuites;
  17. }
  18. }