Harsha
(Harshavardhan)
10 February 2023 10:58
1
I want to run 2 keywords parallely so second keyword should not wait untill the execution of first keyword is completed
damies13
(Dave)
10 February 2023 12:14
2
Hi Harsha,
I did a quick search and found this article, hopefully that will help
robotframework
I also thought that since robot framework is python based, it might be possible to use the python threading module to acheive what you want to do, but I don’t know of an example for that.
Dave.
René
(René)
10 February 2023 22:57
3
I do not know a ready made library that can do that.
Howevery in the Browser library we have that concept.
All our own keywords can be executed as a thread using the Promise To
keyword.
We use a ThreadPoolExecutor for that.
# Copyright 2020- Robot Framework Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import json
from concurrent.futures import Future, ThreadPoolExecutor
from os import PathLike
from pathlib import Path
from time import sleep
from typing import Any, Dict, List
This file has been truncated. show original
1 Like