repauto icon indicating copy to clipboard operation
repauto copied to clipboard

Unable to import project in repauto

Open rohitgargfzr opened this issue 10 years ago • 5 comments

Hi,

Thanks for responding on other issue related to compilation. We are unable to import project in repauto. Please find attached image attached, it includes my project structure, data_sync.db file and terminal logs to run rake data:sync command.

Could you please help here?

Thanks, Rohit Gupta screen shot 2015-10-19 at 6 36 22 pm

rohitgargfzr avatar Oct 19 '15 22:10 rohitgargfzr

So there are a couple of concepts here. Project is a folder with file project.yml in it. It is mandatory. Test Run should be under Project folder with path like this:

/Path/To/Project/TestRunName/Timestamp/

allure result should be under Test Run folder So the full path of your allure-results folder should looks like this:

/Users/appium/Desktop/Tapsium/my_project/testing/2015-01-01-01-01-01/allure-results

I know it is confusing, but this is what we come up with when we have to support multiple teams/projects, with each team has different test run types (regression / debug / defect / smoke ...) Any suggestion to make it simpler is appreciated.

xiaoxinghu avatar Oct 20 '15 01:10 xiaoxinghu

@c0gupr2 have you been able to import the project and fully set it up?

gkiszczak avatar Oct 28 '15 09:10 gkiszczak

same question @c0gupr2

azohra avatar Apr 01 '16 21:04 azohra

I have been trying to find any error messages to help out and noticed the following in the rails server logs.

  1. when loading the 'summary' page I see:
Started GET "/api/projects" for ::1 at 2016-04-01 22:03:41 -0400
Processing by Api::ProjectsController#index as JSON
Unpermitted parameter: format
Unpermitted parameter: format
  Rendered api/projects/_project.json.jbuilder (3.2ms)
  Rendered api/projects/index.json.jbuilder (5.5ms)
Completed 200 OK in 17ms (Views: 15.6ms)
  1. when loading the 'TestRuns' page I see:
Started GET "/api/projects/56ff25388aebb10068000000/test_runs/focus?page=1&archived=false" for ::1 at 2016-04-01 22:05:11 -0400
Processing by Api::TestRunsController#focus as JSON
  Parameters: {"page"=>"1", "archived"=>"false", "project_id"=>"56ff25388aebb10068000000"}
Unpermitted parameters: page, format, project_id
Unpermitted parameters: page, format, project_id
Unpermitted parameters: archived, format, project_id
Unpermitted parameters: archived, format, project_id
  Rendered api/test_runs/focus.json.jbuilder (2.6ms)
Completed 200 OK in 18ms (Views: 13.0ms)

There were no errors on import and I do see data in the DB

justin:repauto jcommu$ bundle exec rake data:sync
2016-04-01 21:49:44 -0400 -> datacraft/sync_projects.rb
2016-04-01 21:49:44 -0400 -> datacraft/import_test_runs.rb
                    user     system      total        real
pre build:       0.000000   0.000000   0.000000 (  0.000004)
process rows:    0.030000   0.000000   0.030000 (  0.113495)
build:           0.000000   0.000000   0.000000 (  0.000010)
post build:      0.000000   0.000000   0.000000 (  0.000003)
2016-04-01 21:49:44 -0400 -> datacraft/process_test_runs.rb
                    user     system      total        real
pre build:       0.000000   0.000000   0.000000 (  0.000003)
process rows:    0.010000   0.000000   0.010000 (  0.017270)
build:           0.000000   0.000000   0.000000 (  0.000009)
post build:      0.000000   0.000000   0.000000 (  0.000003)
justin:repauto jcommu$ 

azohra avatar Apr 02 '16 02:04 azohra

@c0gupr2 @gkiszczak @tk8817 @jaysirju We are working on a new version that eliminates the sync issues, and generally more standardized. Before that, the RESTFul API is the best way to push data into it. Check it out here.

xiaoxinghu avatar Apr 04 '16 04:04 xiaoxinghu