Description
Use the WinStoreTestedApp.PackageName
property to get or set the package name of a Windows Store application added to the current project. This is a name specified in the package manifest.
Declaration
WinStoreTestedAppObj.PackageName
Read-Write Property | String |
WinStoreTestedAppObj | An expression, variable or parameter that specifies a reference to a WinStoreTestedApp object |
Applies To
The property is applied to the following object:
Property Value
A string that specifies the application’s package name.
Example
The following example shows how to add a Windows Store application to the project’s list of tested applications and then posts its properties to the test log.
JavaScript, JScript
function Test()
{
// Adds a Windows Store application to the project
var index = TestedApps.AddWinStoreApp("Microsoft.SDKSamples.Hilo.JS");
var app = TestedApps.Items(index);
// Posts application properties to the test log
Log.Message(app.PackageName);
}
Python
def Test():
# Adds a Windows Store application to the project
index = TestedApps.AddWinStoreApp("Microsoft.SDKSamples.Hilo.JS")
app = TestedApps.Items[index]
# Posts application properties to the test log
Log.Message(app.PackageName)
VBScript
Sub Test
Dim index, app
' Adds a Windows Store application to the project
index = TestedApps.AddWinStoreApp("Microsoft.SDKSamples.Hilo.JS")
Set app = TestedApps.Items(index)
' Posts application properties to the test log
Log.Message app.PackageName
End Sub
DelphiScript
procedure Test;
var index, app;
begin
// Adds a Windows Store application to the project
index := TestedApps.AddWinStoreApp('Microsoft.SDKSamples.Hilo.JS');
app := TestedApps.Items(index);
// Posts application properties to the test log
Log.Message(app.PackageName);
end;
C++Script, C#Script
function Test()
{
// Adds a Windows Store application to the project
var index = TestedApps["AddWinStoreApp"]("Microsoft.SDKSamples.Hilo.JS");
var app = TestedApps["Items"](index);
// Posts application properties to the test log
Log.Message(app["PackageName"]);
}