{"id":20800,"date":"2020-05-21T06:29:43","date_gmt":"2020-05-21T06:29:43","guid":{"rendered":"https:\/\/www.testingdocs.com\/questions\/?p=20800"},"modified":"2024-12-15T06:13:47","modified_gmt":"2024-12-15T06:13:47","slug":"what-is-selenium-sessionmap","status":"publish","type":"post","link":"https:\/\/www.testingdocs.com\/questions\/what-is-selenium-sessionmap\/","title":{"rendered":"What is Selenium SessionMap?"},"content":{"rendered":"<h1>What is Selenium SessionMap?<\/h1>\n<p>In this tutorial, we will learn about Selenium SessionMap. Session Map is a Selenium 4 Grid component that stores the session information for the distributed tests.<\/p>\n<h2>Selenium SessionMap<\/h2>\n<p>A SessionMap is a KV store(Key-Value). It stores the session id and the capabilities. Custom Implementations session schemes of the data store can include<\/p>\n<ul>\n<li><strong>Redis<\/strong><\/li>\n<li><strong>JDBC(Java Database Connectivity)<\/strong><\/li>\n<\/ul>\n<p>For JDBC Implementation of the data store, we need to have the JDBC driver and the supported backend database table to store the data.<\/p>\n<p>We can create the table with the following sample schema:<\/p>\n<pre>CREATE TABLE sessions_map(\r\nsession_ids varchar(256),\r\nsession_caps varchar(1000),\r\nsession_uri varchar(256),\r\nsession_stereotype varchar(1000),\r\nsession_start varchar(256)\r\n);\r\n\r\n\r\n<\/pre>\n<h3><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-20880\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Selenium-4-Grid-Components-1.png\" alt=\"Selenium 4 Grid Components\" width=\"1729\" height=\"879\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Selenium-4-Grid-Components-1.png 1729w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Selenium-4-Grid-Components-1-300x153.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Selenium-4-Grid-Components-1-1024x521.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Selenium-4-Grid-Components-1-768x390.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Selenium-4-Grid-Components-1-1536x781.png 1536w\" sizes=\"auto, (max-width: 1729px) 100vw, 1729px\" \/><\/h3>\n<h2>How to start?<\/h2>\n<p>Launch command prompt \/ Terminal. Make sure the Event Bus is up and running.<\/p>\n<ul>\n<li><a href=\"https:\/\/www.testingdocs.com\/questions\/what-is-selenium-event-bus\/\">https:\/\/www.testingdocs.com\/questions\/what-is-selenium-event-bus\/<\/a><\/li>\n<\/ul>\n<p>Issue the following command:<\/p>\n<p>\\&gt; java -jar &lt;selenium4_server_jar&gt; sessions<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-20828\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Selenium-SessionMap.png\" alt=\"Selenium Session Map\" width=\"1920\" height=\"893\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Selenium-SessionMap.png 1920w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Selenium-SessionMap-300x140.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Selenium-SessionMap-1024x476.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Selenium-SessionMap-768x357.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Selenium-SessionMap-1536x714.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p>We can start the Session Queue component for queuing the requests.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is Selenium SessionMap? In this tutorial, we will learn about Selenium SessionMap. Session Map is a Selenium 4 Grid component that stores the session information for the distributed tests. Selenium SessionMap A SessionMap is a KV store(Key-Value). It stores the session id and the capabilities. Custom Implementations session schemes of the data store can [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[185],"tags":[],"class_list":["post-20800","post","type-post","status-publish","format-standard","hentry","category-selenium","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"_links":{"self":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/20800","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/comments?post=20800"}],"version-history":[{"count":25,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/20800\/revisions"}],"predecessor-version":[{"id":26484,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/20800\/revisions\/26484"}],"wp:attachment":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media?parent=20800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/categories?post=20800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/tags?post=20800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}