get, platform, name, scriptless, script-less, scripted, step, view, stepview

Method GetPlatformName

Retrieves the platform name and returns it in a string. Use this method only after you had executed the Launch or SetPlatformName method at least once per execution

Android Platform Names: "Phone", "Tablet", "Other"

iOS Platform Names: "iPhone", "iPad", "iPod", "TV", "Other"

Windows Platform Names: "Win2000", "WinXp", "WinServer2003", "WinServer2003R2", "WinVista", "WinServer2008", "WinServer2008R2", "Win7", "WinServer2012", "Win8", "WinServer2012R2", "Win8.1", "WinServer2016", "Win10"

Watch this video to learn how to use this method

Have a problem with playback?

Usage

Function GetPlatformName(
    Boolean Report [Optional]
)

Step

ZAP Object step

GetPlatformName

True

platform

Report

Output Parameter

Parameters

Report (optional)

Type: Boolean

Default Value: False

Generate report for this step

Returns

The name of the platform

Example

VBScript

Application("Demo").GetPlatformName()

JavaScript

Application("Demo").GetPlatformName();

Comment

Get Platform name and save it to variable

Script-Less next step

Step

ZAP Object step

GetPlatformName

True

platform

Contact Us

3150 Roswell Rd NW

Atlanta, GA, 30305, USA

(800) 795-3552