Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Import at max 10 external resouces per test suite

  • Loading branch information...
commit 8ab53d8a2a5049da7d4343bec0cd68a618fc8551 1 parent 16228a2
@mikahanninen mikahanninen authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 rfgen.py
View
8 rfgen.py
@@ -202,8 +202,13 @@ def _create_test_suite(dirs, filecount = 1, testcount = 20, avg_test_depth = 5,
except IndexError:
break
# USE ALL EXTERNAL RESOURCES
+ # import max 10
+ imported_external_resources = 0
for res in available_external_resources:
settings_txt += "Resource\t%s\n" % res
+ imported_external_resources += 1
+ if imported_external_resources == 10:
+ break
settings_txt += "\n"
keywords_txt += "*** Keywords ***\n"
keywords_txt += "My Keyword\n\tNo Operation\n"
@@ -266,9 +271,10 @@ def _create_test_resources(dirs, resource_files, resources_in_file, external_res
extfile_ondisk = open(final_external_filename, "w")
extfile_ondisk.write(content)
extfile_ondisk.close()
+ db_cursor.execute("INSERT INTO keywords (name,source) VALUES ('%s','%s')" % (kw_name, final_external_filename))
db_cursor.execute("INSERT INTO source (path,type) VALUES ('%s','EXT_RESOURCE')" % final_external_filename)
- db_cursor.execute("INSERT INTO source (path,type) VALUES ('%s','RESOURCE')" % final_external_filename)
+
Please sign in to comment.
Something went wrong with that request. Please try again.