File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
seleniumbase/console_scripts Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -207,6 +207,22 @@ def main():
207
207
"" + c1 + file_name + cr + "\n "
208
208
)
209
209
print (success )
210
+ if rec_behave :
211
+ recorded_filename = file_name [:- 3 ] + "_rec.feature"
212
+ recordings_dir = os .path .join (dir_name , "recordings" )
213
+ features_dir = os .path .join (recordings_dir , "features" )
214
+ recorded_file = os .path .join (features_dir , recorded_filename )
215
+ if " " not in recorded_file :
216
+ os .system ("sbase print %s -n" % recorded_file )
217
+ elif '"' not in recorded_file :
218
+ os .system ('sbase print "%s" -n' % recorded_file )
219
+ else :
220
+ os .system ("sbase print '%s' -n" % recorded_file )
221
+ success = (
222
+ "\n " + c2 + "***" + cr + " BEHAVE RECORDING at: "
223
+ "" + c1 + os .path .relpath (recorded_file ) + cr + "\n "
224
+ )
225
+ print (success )
210
226
211
227
212
228
if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments