PageSourceSearch

https://docs-production-katalon.netlify.app/assets/js/875cc0f3.1214353b.js

js docs-production-katalon.netlify.app collected 2026-10-03 10:41:14 UTC 8,580 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkKatalon_Docs=self.webpackChunkKatalon_Docs||[]).push([[6296],{28453:(e,t,a)=>{a.d(t,{R:()=>n,x:()=>r});var o=a(96540);const s={},i=o.createContext(s);function n(e){const t=o.useContext(i);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:n(e.components),o.createElement(i.Provider,{value:t},e.children)}},45620:(e,t,a)=>{a.r(t),a.d(t,{assets:()=>c,contentTitle:()=>r,default:()=>l,frontMatter:()=>n,metadata:()=>o,toc:()=>d});const o=JSON.parse('{"id":"keywords/keyword-description-in-katalon-studio/mobile-keywords/mobile-get-device-os","title":"[Mobile] Get Device OS","description":"Description","source":"@site/docs/katalon-studio/keywords/keyword-description-in-katalon-studio/mobile-keywords/mobile-get-device-os.md","sourceDirName":"keywords/keyword-description-in-katalon-studio/mobile-keywords","slug":"/keywords/keyword-description-in-katalon-studio/mobile-keywords/mobile-get-device-os","permalink":"/katalon-studio/keywords/keyword-description-in-katalon-studio/mobile-keywords/mobile-get-device-os","draft":false,"unlisted":false,"tags":[],"version":"current","lastUpdatedAt":1758935351000,"frontMatter":{"title":"[Mobile] Get Device OS"},"sidebar":"katalon-studio","previous":{"title":"[Mobile] Get Device Manufacturer","permalink":"/katalon-studio/keywords/keyword-description-in-katalon-studio/mobile-keywords/mobile-get-device-manufacturer"},"next":{"title":"[Mobile] Get Device OS Version","permalink":"/katalon-studio/keywords/keyword-description-in-katalon-studio/mobile-keywords/mobile-get-device-os-version"}}');var s=a(74848),i=a(28453);const n={title:"[Mobile] Get Device OS"},r=void 0,c={},d=[{value:'<a class="anchor_top_offset"></a>Description',id:"description",level:2},{value:'<a class="anchor_top_offset"></a>Parameters',id:"parameters",level:2},{value:'<a class="anchor_top_offset"></a>Returns',id:"returns",level:2},{value:'<a class="anchor_top_offset"></a>Example',id:"example",level:2}];function _(e){const t={h2:"h2",p:"p",...(0,i.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(t.h2,{id:"description",children:[(0,s.jsx)("a",{id:"id_0__id_1",class:"anchor_top_offset"}),"Description"]}),"\n",(0,s.jsx)("p",{xmlns:"http://www.w3.org/1999/xhtml",className:"p",children:"Get the device OS of the current active mobile device."}),"\n",(0,s.jsxs)("p",{xmlns:"http://www.w3.org/1999/xhtml",className:"p",children:["Keyword name: ",(0,s.jsx)("code",{className:"ph codeph",children:"Mobile.getDeviceOS"})]}),"\n",(0,s.jsxs)(t.h2,{id:"parameters",children:[(0,s.jsx)("a",{id:"id_0__id_2",class:"anchor_top_offset"}),"Parameters"]}),"\n",(0,s.jsxs)("table",{xmlns:"http://www.w3.org/1999/xhtml",className:"table anchor_top_offset",id:"id_0__4812d622-5e51-4705-9025-0f4135f798a9",children:[(0,s.jsx)("caption",{}),(0,s.jsx)("thead",{className:"thead",children:(0,s.jsxs)("tr",{className:!0,children:[(0,s.jsx)("th",{className:"entry anchor_top_offset",id:"id_0__4812d622-5e51-4705-9025-0f4135f798a9__entry__1",children:"Param"}),(0,s.jsx)("th",{className:"entry anchor_top_offset",id:"id_0__4812d622-5e51-4705-9025-0f4135f798a9__entry__2",children:"Param Type"}),(0,s.jsx)("th",{className:"entry anchor_top_offset",id:"id_0__4812d622-5e51-4705-9025-0f4135f798a9__entry__3",children:"Required"}),(0,s.jsx)("th",{className:"entry anchor_top_offset",id:"id_0__4812d622-5e51-4705-9025-0f4135f798a9__entry__4",children:"Description"})]})}),(0,s.jsx)("tbody",{className:"tbody",children:(0,s.jsxs)("tr",{className:!0,children:[(0,s.jsx)("td",{className:"entry",headers:"id_0__4812d622-5e51-4705-9025-0f4135f798a9__entry__1 id_0__4812d622-5e51-4705-9025-0f4135f798a9__entry__2 id_0__4812d622-5e51-4705-9025-0f4135f798a9__entry__3 id_0__4812d622-5e51-4705-9025-0f4135f798a9__entry__4 ",children:"flowControl"}),(0,s.jsx)("td",{className:"entry",headers:"id_0__4812d622-5e51-4705-9025-0f4135f798a9__entry__1 id_0__4812d622-5e51-4705-9025-0f4135f798a9__entry__2 id_0__4812d622-5e51-470
15-9025-0f4135f798a9__entry__3 id_0__4812d622-5e51-4705-9025-0f4135f798a9__entry__4 ",children:"FailureHandling"}),(0,s.jsx)("td",{className:"entry",headers:"id_0__4812d622-5e51-4705-9025-0f4135f798a9__entry__1 id_0__4812d622-5e51-4705-9025-0f4135f798a9__entry__2 id_0__4812d622-5e51-4705-9025-0f4135f798a9__entry__3 id_0__4812d622-5e51-4705-9025-0f4135f798a9__entry__4 ",children:"Optional"}),(0,s.jsxs)("td",{className:"entry",headers:"id_0__4812d622-5e51-4705-9025-0f4135f798a9__entry__1 id_0__4812d622-5e51-4705-9025-0f4135f798a9__entry__2 id_0__4812d622-5e51-4705-9025-0f4135f798a9__entry__3 id_0__4812d622-5e51-4705-9025-0f4135f798a9__entry__4 ",children:["Specify ",(0,s.jsx)("a",{className:"xref",href:"/katalon-studio/maintain-tests/configure-failure-handling-settings-in-katalon-studio",children:"failure handling"})," schema to determine whether the execution should be allowed to continue or stop."]})]})})]}),"\n",(0,s.jsxs)(t.h2,{id:"returns",children:[(0,s.jsx)("a",{id:"id_0__id_3",class:"anchor_top_offset"}),"Returns"]}),"\n",(0,s.jsxs)("table",{xmlns:"http://www.w3.org/1999/xhtml",className:"table anchor_top_offset",id:"id_0__46523839-ea93-4620-87c4-080966129a82",children:[(0,s.jsx)("caption",{}),(0,s.jsx)("thead",{className:"thead",children:(0,s.jsxs)("tr",{className:!0,children:[(0,s.jsx)("th",{className:"entry anchor_top_offset",id:"id_0__46523839-ea93-4620-87c4-080966129a82__entry__1",children:"Param Type"}),(0,s.jsx)("th",{className:"entry anchor_top_offset",id:"id_0__46523839-ea93-4620-87c4-080966129a82__entry__2",children:"Description"})]})}),(0,s.jsx)("tbody",{className:"tbody",children:(0,s.jsxs)("tr",{className:!0,children:[(0,s.jsx)("td",{className:"entry",headers:"id_0__46523839-ea93-4620-87c4-080966129a82__entry__1 id_0__46523839-ea93-4620-87c4-080966129a82__entry__2 ",children:"String"}),(0,s.jsx)("td",{className:"entry",headers:"id_0__46523839-ea93-4620-87c4-080966129a82__entry__1 id_0__46523839-ea93-4620-87c4-080966129a82__entry__2 ",children:"The device OS of the current active mobile device."})]})})]}),"\n",(0,s.jsxs)(t.h2,{id:"example",children:[(0,s.jsx)("a",{id:"id_0__id_4",class:"anchor_top_offset"}),"Example"]}),"\n",(0,s.jsx)(t.p,{children:'You want to get the device OS of the current active mobile device, then store it into "os" variable:'}),"\n",(0,s.jsx)("div",{xmlns:"http://www.w3.org/1999/xhtml",className:"p",children:(0,s.jsx)("pre",{className:"pre codeblock",children:(0,s.jsxs)("code",{children:["import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint","\n","import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase","\n","import static com.kms.katalon.core.testdata.TestDataFactory.findTestData","\n","import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject","\n","import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint","\n","import com.kms.katalon.core.checkpoint.CheckpointFactory as CheckpointFactory","\n","import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as MobileBuiltInKeywords","\n","import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile","\n","import com.kms.katalon.core.model.FailureHandling as FailureHandling","\n","import com.kms.katalon.core.testcase.TestCase as TestCase","\n","import com.kms.katalon.core.testcase.TestCaseFactory as TestCaseFactory","\n","import com.kms.katalon.core.testdata.TestData as TestData","\n","import com.kms.katalon.core.testdata.TestDataFactory as TestDataFactory","\n","import com.kms.katalon.core.testobject.ObjectRepository as ObjectRepository","\n","import com.kms.katalon.core.testobject.TestObject as TestObject","\n","import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WSBuiltInKeywords","\n","import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS","\n","import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUiBuiltInKeywords","\n","import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI","\n","import internal.GlobalVariable as GlobalVariable","\n","\n","'Start application on current selected android device'","\n","Mobile.startApplication(GlobalVariable.G_AndroidApp, false)","\n","\n","'Get current device OS'","\n","os = Mobile.getDeviceOS()","\n","\n","'Close application'","\n","Mobile.closeApplication()","\n","\n","\n"]})})})]})}function l(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(_,{...e})}):_(e)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.