What are the methods for synchronization/merging of Test harness's to new main model?

조회 수: 3 (최근 30일)
What are the methods to merge Test Harness with the newer version of the model when multiple developers are working on the development of the model and development of test harness?
In most of the development environments, one tester will be creating test harness for one function in the model and the other tester will be developing harness for other function. At the same time, the developer will be updating the model.
How can merge these different test harness created for the updated version of the model?

채택된 답변

Rong Mi
Rong Mi 2018년 2월 7일
Hi Varunjith Vijayan,
Based on my understanding, you may use one of the following workflows:
The design model is checkout in Git by developers. More than 1 persons are using the design model to generate or modify test harnesses.
1) People create test harnesses which are saved with different names.
For this workflow, when the test harnesses and harnessInfo.xml are checked in, people need update the harnessInfo.xml with the latest changes and add the newly created harness information into harnessInfo.xml.
2) People create test harnesses which are saved with SAME names.
The second harness needs to be saved with a different name and the newly created harness information can be added into harnessInfo.xml.
3) More than two persons are modifying the same test harness.
The difference between two test harnesses can be obtained using Simulink Project. The difference between two harnessInfo.xml files can be obtained using MATLAB "Compare" function, which can be found at the following position: Launch MATLAB -> HOME(The 1st toolstrip) -> Compare.
If the information in harnessInfo.xml is correct, the harness can be found correctly.
  댓글 수: 1
Varunjith Vijayan
Varunjith Vijayan 2018년 2월 23일
편집: Varunjith Vijayan 2018년 2월 23일
Is the updating harnessInfo.xml work if the there is difference in the model or version?

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Rong Mi
Rong Mi 2018년 2월 6일
Hi Varunjith Vijayan,
I understand from your description that you have different versions of main models created by different developers and you also have different test harnesses. Right now you want to merger a specific test harness to a specific version of model.
The way to merge a test harness to a different harness owner is available from R2017a.
You can use a feature called "clone harness".
In your MATLAB command window, type the following:
sltest.harness.clone(HarnessOwner,HarnessName,'DestinationOwner',Value,'Name',newHarnessName)
Also you can type the following in MATLAB Command Window:
help sltest.harness.clone
you can see the detailed description of the command, and "Example 2", which is listed above, is the one you can use for this purpose.
  댓글 수: 1
Varunjith Vijayan
Varunjith Vijayan 2018년 2월 7일
편집: Varunjith Vijayan 2018년 2월 7일
But when we are working with git how is this possible because we will be checking out one version? Can we use import test harness? It will be showing conflict in harnessInfo.xml file when we try to merge. If we ignore the conflict the harness developed by others will not show. We have to manually add those harness. What is the solution for this?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Results, Reporting, and Test File Management에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by