IP Library Granted Patent US 10,691,584
Granted Patent B2
US 10,691,584 · App. 16/146,188 · Granted Jun 23, 2020

Behavior driven development integration with test tool

Inventors: Bandita Talukdar (Guwahati, IN); Smrithi Jayarajan (Kannur, IN)
Assignee: SAP SE
G06F11/3684G06F8/30G06F11/3696G06F16/86G06F40/151G06F40/284
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,691,584
App. No.
16/146,188
Granted
Jun 23, 2020
Kind
B2
Abstract

According to some embodiments, systems and methods are provided, comprising receiving a first test script in a file as text; receiving the file at a Behavior Driven Development (BDD) test integration module; transforming one or more elements in the test script into one or more corresponding tokens; mapping each of the tokens to a respective code in a code repository; generating a second test script from the code; transforming the generated second test script into natural language; and executing the generated second test script. Numerous other aspects are provided.

Claims (52)

1. A computer-implemented method comprising:

receiving a first test script in a file as text;

receiving the file at a Behavior Driven Development (BDD) test integration module;

transforming one or more elements under test in the test script into one or more corresponding tokens, wherein executable code to test the one or more elements is derived from the one or more corresponding tokens;

mapping each of the tokens to a respective code in a code repository, wherein the respective code that populates the code repository is associated with the one or more elements under test;

generating a second test script from the code;

transforming the generated second test script to generate a natural language file; and

executing the generated second test script and the generated natural language file.

2. The method of claim 1 , wherein the first test script is received in the file in a rule-based and structured language.

3. The method of claim 2 , wherein the rule-based and structured language is Gherkin.

4. The method of claim 1 , wherein a natural language processor transforms the one or more elements into the one or more corresponding tokens.

5. The method of claim 1 , further comprising:

displaying the transformed generated second test script on a user interface.

6. The method of claim 1 , wherein the one or more received elements create a new test script or edit an existing test script.

7. The method of claim 1 , wherein executing the generated second test script further comprises:

executing the one or more steps in a playback mode.

8. The method of claim 1 , wherein the file includes a keyword at a beginning of each line of text in the file.

9. The method of claim 1 further comprising:

displaying the natural language to a user; and

verifying the generated second test script is written as intended based on the displayed natural language, wherein the verification is prior to execution of the generated second test script.

10. The method of claim 1 , wherein execution of the natural language file automatically executes the second test script.

11. A system comprising:

a display;

a memory storing processor-executable steps;

a Behavior Driven Development (BDD) test integration module; and

a BDD test integration processor in communication with the BDD test integration module and operative to execute the processor-executable process steps to cause the system to:

receive a first test script in a file as text in a rule-based and structured language;

receive the file at a Behavior Driven Development (BDD) test integration module;

transform one or more elements under test in the test script into one or more corresponding tokens, wherein executable code to test the one or more elements is derived from the one or more corresponding tokens;

map each of the tokens to a respective code in a code repository, wherein the respective code that populates the code repository is associated with testing of the one or more elements under test;

generate a second test script from the code;

transform the generated second test script to generate a natural language file; and

execute the generated second test script and the generated natural language file.

12. The system of claim 11 , wherein the rule-based and structured language is Gherkin.

13. The system of claim 12 , further comprising a natural language generator operative to transform the generated second test script into natural language.

14. The system of claim 11 , wherein a natural language processor transforms the one or more elements into the one or more corresponding tokens.

15. The system of claim 11 , further comprising:

a display operative to display the transformed generated second test script on a user interface.

16. The system of claim 11 , wherein the one or more received steps create a new test script or edit an existing test script.

17. The system of claim 11 , wherein executing the generated second test script further comprises process steps to cause the system to:

execute the one or more steps in a playback mode.

18. The system of claim 11 , wherein the file includes a keyword at a beginning of each line of text in the file.

19. A non-transitory computer-readable medium storing program code, the program code executable by a computer system to cause the computer system to:

receive a first test script in a file as text in a rule-based and structured language;

receive the file at a Behavior Driven Development (BDD) test integration module;

transform one or more elements under test in the test script into one or more corresponding tokens, wherein executable code to test the one or more elements is derived from the one or more corresponding tokens;

map each of the tokens to a respective code in a code repository, wherein the respective code that populates the code repository is associated with the one or more elements under test;

generate a second test script from the code;

transform the generated second test script to generate a natural language file; and

execute the generated second test script and the generated natural language file.

20. The medium of claim 19 , wherein the rule-based and structured language is Gherkin.

21. The medium of claim 19 , wherein a natural language processor transforms the one or more elements into the one or more corresponding tokens.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 28, 2018
From: TALUKDAR, BANDITA; JAYARAJAN, SMRITHI
To: SAP SE
Reel/Frame 047008/0511 →
Continuity (1)
Related Publication 20200104241A1 · Apr 2, 2020
Cited By (1)
US 12,222,848