test_class.file: karate-core/src/test/java/com/intuit/karate/formats/postman/PostmanConverterTest.java
test_class.identifier: PostmanConverterTest
test_case.body: @Test
      public void testInvalidSourcePath() {
          boolean successful = new PostmanConverter().convert("does-not-exist_1234567890", "./");
          Assert.assertFalse(successful);
      }
test_case.class_method_signature: PostmanConverterTest.testInvalidSourcePath()
test_case.full_signature: @Test public void testInvalidSourcePath()
test_case.identifier: testInvalidSourcePath
test_case.invocations: convert assertFalse
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testInvalidSourcePath()
focal_class.file: karate-core/src/main/java/com/intuit/karate/formats/postman/PostmanConverter.java
focal_class.identifier: PostmanConverter
focal_class.class_method_signature: PostmanConverter.convert(final String importFile, final String outputDir)
focal_class.full_signature: public boolean convert(final String importFile, final String outputDir)
focal_class.identifier: convert
focal_class.modifiers: public
focal_class.parameters: (final String importFile, final String outputDir)
focal_class.return: boolean
focal_class.signature: boolean convert(final String importFile, final String outputDir)
focal_method.body: public boolean convert(final String importFile, final String outputDir) {
          try {
              final Path pathTo = Paths.get(importFile);
              if (!Files.exists(pathTo)) {
                  System.err.println("File at '" + importFile + "' does not exist; cannot import");
                  return false;
              }
              final String content = new String(Files.readAllBytes(pathTo), StandardCharsets.UTF_8);
              final List<PostmanItem> items = PostmanUtils.readPostmanJson(content);
              final String collectionName = pathTo.getFileName().toString()
                  .replace(".postman_collection", "")
                  .replace(".json", "");
              final String converted = PostmanUtils.toKarateFeature(collectionName, items);
              final Path outputFilePath = Paths.get(outputDir, collectionName + ".feature");
              Files.write(outputFilePath, converted.getBytes());
              System.out.println("Converted feature file available at " + outputFilePath.toAbsolutePath().toString());
              return true;
          } catch (IOException e) {
              System.err.println("An error occurred with processing the file - the task could not be completed");
              return false;
          }
      }
focal_method.class_method_signature: PostmanConverter.convert(final String importFile, final String outputDir)
focal_method.full_signature: public boolean convert(final String importFile, final String outputDir)
focal_method.identifier: convert
focal_method.invocations: get exists println readAllBytes readPostmanJson replace replace toString getFileName toKarateFeature get write getBytes println toString toAbsolutePath println
focal_method.modifiers: public
focal_method.parameters: (final String importFile, final String outputDir)
focal_method.return: boolean
focal_method.signature: boolean convert(final String importFile, final String outputDir)