# Additional Files are created while loading TapPlan using profile

**URL:** <https://forum.opentap.io/t/additional-files-are-created-while-loading-tapplan-using-profile/440>\
**Category:** General\
**Created:** [September 1, 2021, 4:51am UTC](https://forum.opentap.io/t/additional-files-are-created-while-loading-tapplan-using-profile/440 "2021-09-01T04:51:16Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![justin\_c\_i](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opentap.io/justin_c_i/32/232_2.png) [@justin\_c\_i](https://forum.opentap.io/u/justin_c_i)\
**Post date:** [September 1, 2021, 4:51am UTC](https://forum.opentap.io/t/additional-files-are-created-while-loading-tapplan-using-profile/440/1 "2021-09-01T04:51:16Z")

</div>

Hi Team,

We have created a Tap plan and we save Profile inside the Tap plan folder.

We have also created a property inside Tap Plan, so while loading the tap plan we load profile from the  
Tap plan folder.

```csharp
 /// <summary>
        /// Gets or sets Profile location.
        /// </summary>
        [Browsable(false)]
        public string Profilelocation
        {
            get => this.profilelocation; set
            {
                this.profilelocation = value;
                if (!this.isProfileSaving)
                {

                    this.SetProfile(true);
                }
            }
        }

```

```csharp
 public void SetProfile()
{
ComponentSettings.SettingsDirectoryRoot = this.profilelocation; 
ComponentSettings.SetSettingsProfile("Bench", profileName);
ComponentSettings.EnsureSettingsDirectoryExists("Bench", true); 
ComponentSettings.SaveAllCurrentSettings();
}

```

Problem we face is, additional files like **Editor.xml,Engine.xml,Results.XML etc…** is created inside tap plan folder.  
Are we doing some wrong code to load profile.?  
Or is this an expected behavior?

Please advice .

 ![image](https://us1.discourse-cdn.com/flex020/uploads/opentap/original/1X/ff5f21cee2708e7d3db15744d35aa091bbc4d2ca.png)

---

<div class="post-metadata">

**Author:** ![brennen\_direnzo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opentap.io/brennen_direnzo/32/6_2.png) [@brennen\_direnzo](https://forum.opentap.io/u/brennen_direnzo)\
**Post date:** [September 2, 2021, 2:56pm UTC](https://forum.opentap.io/t/additional-files-are-created-while-loading-tapplan-using-profile/440/2 "2021-09-02T14:56:27Z")

</div>

@justin_c_i this is expected. All those files are required for a complete Profile. If they aren’t explicitly created they will be generated using the default settings.

---

<div class="post-metadata">

**Author:** ![justin\_c\_i](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opentap.io/justin_c_i/32/232_2.png) [@justin\_c\_i](https://forum.opentap.io/u/justin_c_i)\
**Post date:** [September 3, 2021, 1:02am UTC](https://forum.opentap.io/t/additional-files-are-created-while-loading-tapplan-using-profile/440/3 "2021-09-03T01:02:22Z")

</div>

Hi @brennen_direnzo

What all files are considered as a “complete profile”?

 ![image](https://us1.discourse-cdn.com/flex020/uploads/opentap/original/1X/e65fc0b1df79248a226715bb064542217796f15e.png)

All these file outside bench also part of the profile? can you please list all the files at considered as the part of profile? is there any other files required from other location?

Thanks.

---

<div class="post-metadata">

**Author:** ![brennen\_direnzo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opentap.io/brennen_direnzo/32/6_2.png) [@brennen\_direnzo](https://forum.opentap.io/u/brennen_direnzo)\
**Post date:** [September 3, 2021, 1:08am UTC](https://forum.opentap.io/t/additional-files-are-created-while-loading-tapplan-using-profile/440/4 "2021-09-03T01:08:44Z")

</div>

@justin_c_i technically I guess, those files are setting files, not Profile. Sorry about that. What is “required” varies based on what is installed. The true minimum is:

```csharp
Engine.xml
Package Manager.xml
Results.xml

```

```csharp
Settings\Bench\Default:

Connections.xml
DUTs.xml
Instruments.xml

```

This would be for a pure OpenTAP install. If you have PathWave Test Automation installed then you would have the GUI related files:

```csharp
Editor.xml
GUI Controls.xml
GUI Panels.xml
Package Manager GUI.xml

```

Other Plugins can also have their own settings file (like Switch Manager in your case)

---

<div class="post-metadata">

**Author:** ![justin\_c\_i](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opentap.io/justin_c_i/32/232_2.png) [@justin\_c\_i](https://forum.opentap.io/u/justin_c_i)\
**Post date:** [September 3, 2021, 1:24am UTC](https://forum.opentap.io/t/additional-files-are-created-while-loading-tapplan-using-profile/440/5 "2021-09-03T01:24:52Z")

</div>

Hi @brennen_direnzo ,

Even if we change the profile location , Settings files should be always read from TestAutomation folder?

Now if we change the Profile location, settings files will be read from the profile location path also default files are created.

Is this a bug ?

Or

We will copy entire settings folder and consider settings folder as the profile?

Thanks.

---

<div class="post-metadata">

**Author:** ![brennen\_direnzo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opentap.io/brennen_direnzo/32/6_2.png) [@brennen\_direnzo](https://forum.opentap.io/u/brennen_direnzo)\
**Post date:** [September 3, 2021, 1:25am UTC](https://forum.opentap.io/t/additional-files-are-created-while-loading-tapplan-using-profile/440/6 "2021-09-03T01:25:46Z")

</div>

You should use the entire Settings folder.

---

<div class="post-metadata">

**Author:** ![pohchann](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@pohchann](https://forum.opentap.io/u/pohchann)\
**Post date:** [September 3, 2021, 1:43am UTC](https://forum.opentap.io/t/additional-files-are-created-while-loading-tapplan-using-profile/440/7 "2021-09-03T01:43:26Z")

</div>

Hi Brennen,  
If we copy GUI Controls.xml, any suggestion to make the “RecentTestPlans” as system-wide?  
For usability, there should be 1 copy of history of recent TapPlans.  
Thanks.

---

<div class="post-metadata">

**Author:** ![brennen\_direnzo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opentap.io/brennen_direnzo/32/6_2.png) [@brennen\_direnzo](https://forum.opentap.io/u/brennen_direnzo)\
**Post date:** [September 3, 2021, 1:59am UTC](https://forum.opentap.io/t/additional-files-are-created-while-loading-tapplan-using-profile/440/8 "2021-09-03T01:59:36Z")

</div>

@pohchann I don’t think that is possible. I think the easiest way would be to not include it. Then what already exists will be used.

---

<div class="post-metadata">

**Author:** ![pohchann](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@pohchann](https://forum.opentap.io/u/pohchann)\
**Post date:** [September 3, 2021, 2:44am UTC](https://forum.opentap.io/t/additional-files-are-created-while-loading-tapplan-using-profile/440/9 "2021-09-03T02:44:02Z")

</div>

Hi @brennen_direnzo ,  
Thanks for the info.  
I suspected that both Package Manager.xml and Package Manager GUI.xml are system-wide and no need to copy to profile folder. Whatever changes made, both files under Test Automation\Settings will be updated and not the local copy.  
Could you please help to confirm?  
Regards.

---

<div class="post-metadata">

**Author:** ![brennen\_direnzo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opentap.io/brennen_direnzo/32/6_2.png) [@brennen\_direnzo](https://forum.opentap.io/u/brennen_direnzo)\
**Post date:** [September 3, 2021, 2:45am UTC](https://forum.opentap.io/t/additional-files-are-created-while-loading-tapplan-using-profile/440/10 "2021-09-03T02:45:41Z")

</div>

Everything is local to the TAP directory they are in. They are not System Wide, but if you just mean your plugin directory vs the root TAP directory, then yes that is the case.

---

<div class="post-metadata">

**Author:** ![pohchann](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@pohchann](https://forum.opentap.io/u/pohchann)\
**Post date:** [September 3, 2021, 3:24am UTC](https://forum.opentap.io/t/additional-files-are-created-while-loading-tapplan-using-profile/440/11 "2021-09-03T03:24:21Z")

</div>

When I run Package Manager from my local profile and TapPlan folder, both local Package Manager.xml and Package Manager GUI.xml were not updated. Instead, they were updated under Test Automation\Settings.

![image](https://us1.discourse-cdn.com/flex020/uploads/opentap/original/1X/1a865bc17720252f39a62eee2eab07e3c39079d8.png)

---

<div class="post-metadata">

**Author:** ![brennen\_direnzo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opentap.io/brennen_direnzo/32/6_2.png) [@brennen\_direnzo](https://forum.opentap.io/u/brennen_direnzo)\
**Post date:** [September 3, 2021, 3:26am UTC](https://forum.opentap.io/t/additional-files-are-created-while-loading-tapplan-using-profile/440/12 "2021-09-03T03:26:39Z")

</div>

Where is your local profile directory? It might be easier if you share what you are trying to do and then we can probably provide some suggestions

---

<div class="post-metadata">

**Author:** ![gordonong](https://avatars.discourse-cdn.com/v4/letter/g/3da27b/32.png) [@gordonong](https://forum.opentap.io/u/gordonong)\
**Post date:** [September 9, 2021, 3:23am UTC](https://forum.opentap.io/t/additional-files-are-created-while-loading-tapplan-using-profile/440/13 "2021-09-09T03:23:38Z")

</div>

Re-posting here for clarification.

When the Package Manager is launched from the Tools menu in Editor, it will launch the PackageManager.exe as a **separate process** , therefore it creates another instance of the OpenTAP engine. The engine will then proceed to load the settings from the default path, which will be Settings directory in the OpenTAP.dll. Therefore, the Package Manager settings(Packages Manager.xml and Package Manager GUI.xml) are saved into the TAP settings.

---

<div class="post-metadata">

**Author:** ![john.berlien](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@john.berlien](https://forum.opentap.io/u/john.berlien)\
**Post date:** [September 12, 2021, 3:05pm UTC](https://forum.opentap.io/t/additional-files-are-created-while-loading-tapplan-using-profile/440/14 "2021-09-12T15:05:16Z")

</div>

This is what Brennen means by “local”. When you install PathWave Test Automation, then OpenTAP is obviously also installed. Therefore, settings are specific to this installation (your one and only system-wide installation) if you’re running the Package Manager GUI. Since you only have one installation, they are _effectively_ system-wide.
