-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [stu-346-placeholder-test] feat: new Test type: "Placeholder" * [stu-346-placeholder-test] feat: Change the path and test type of placeholder * chore: all test step can be edited * fix: css overflow * chore: display error as toast * formatting * fix: Eslint * chore: python formatting * Update src/renderer/routes/test_sequencer_panel/components/modals/ChangeLinkedTest.tsx Co-authored-by: Jeff Zhang <[email protected]> * chore: wip * chore: EsLint fix * chore: removing dead code * chore: fix Eslint * chore: Eslint fix * chore: formatting * chore: Sequence Gallery UI * fix: new return Result when test are duplicated doesn't close Modal. -> Fix test * [sequencer-gallery] chore: Working import demo sequence * [sequencer-gallery] Export & Expected Demo * [sequencer-gallery] ui: removed weird yellow and added better comment in example * chore: formatting * fix: Eslint * [stu-346-placeholder-test] chore: placeholder test => Using form * [stu-346-placeholder-test] chore: Using object as input for better clarity * chore: formatting * [sequencer-gallery] chore: using test profile workflow to load example * [sequencer-gallery] chore: remove "use" prefix as react thinks it's a hook * [sequencer-gallery] chore: bundle example with app * [sequencer-gallery] fix: space in sequence name * chore: formatting * [sequencer-gallery] chore: using process.resourcesPath * [sequencer-gallery] chore: adding CI test for Gallery + testing injected min & max * chore: formatting * chore(robot): discoverer * chore(robot): Robot import frontend - experimental * chore(robot): robot framework => import in batches * chore(robot): handle Robot framework in change executable * chore(robot): formatting * chore(robot): sample code for robot example * chore(robot): Robot Framework Sequence Example * chore(linter): fix E711 * chore(robot): cleanup * chore(robot): formatting * chore(robot): adding @itsjoeoui pattern matching recommendation * chore(robot): exposing discoverable test type as global type * chore(robot): formatting * chore(robot): format * chore(robot): fix esLint * chore(robot): fix esLint part #2 --------- Co-authored-by: Jeff Zhang <[email protected]>
- Loading branch information
1 parent
0ff0c5c
commit 05239a5
Showing
20 changed files
with
278 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
examples/test-sequencer-robot-framework-example/Robot_Sequence.tjoy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"name":"Robot_Sequence","description":"Consult the code to learn more!","elems":[{"type":"test","id":"35d63b42-c0b9-4a2e-900e-e327404a8c41","groupId":"40216fc8-785a-4610-913e-90bd54f157af","path":"TestExample.robot","testName":"TEST EXPORT","runInParallel":false,"testType":"robotframework","status":"pending","error":null,"isSavedToCloud":false,"exportToCloud":true,"createdAt":"2024-04-24T15:35:41.832Z"},{"type":"test","id":"36374991-c721-40c6-8a35-68a996fe6ed4","groupId":"d8a898b4-a012-4177-9f9a-d07c3ab5f84e","path":"TestExample.robot","testName":"TEST ASSERT","runInParallel":false,"testType":"robotframework","status":"pending","error":null,"isSavedToCloud":false,"exportToCloud":true,"createdAt":"2024-04-24T15:35:41.832Z","minValue":2,"maxValue":4.2,"unit":""}],"projectPath":"C:/Users/zzzgu/Documents/flojoy/repo/studio/examples/test-sequencer-robot-framework-example/","interpreter":{"type":"flojoy","path":null,"requirementsPath":"flojoy_requirements.txt"}} |
19 changes: 19 additions & 0 deletions
19
examples/test-sequencer-robot-framework-example/TestExample.robot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
*** Settings *** | ||
Library flojoy_cloud.test_sequencer | ||
Library calculate.py | ||
|
||
*** Test Cases *** | ||
TEST EXPORT | ||
${result} Calculate 3 + 1 | ||
# Export the `result` so it's display in the sequencer | ||
# + this value will be upload to Flojoy Cloud | ||
Export ${result} | ||
Should Not Be Equal 4 ${result} | ||
|
||
TEST ASSERT | ||
${result} Calculate 1 + 1 | ||
Export ${result} | ||
# Call the `is_in_range` from the test_sequencer | ||
${ok} Is In Range ${result} | ||
Should Be True ${ok} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
def calculate(term): | ||
if term == "": | ||
return 0 | ||
else: | ||
return eval(term) |
1 change: 1 addition & 0 deletions
1
examples/test-sequencer-robot-framework-example/flojoy_requirements.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
psutil==5.9.8 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.